Skip to content

Commit

Permalink
Merge pull request #853 from zancas/master
Browse files Browse the repository at this point in the history
this '*' is unnecessary, and reduces readability
  • Loading branch information
ehuss authored Jul 20, 2020
2 parents 4e6ea83 + 0d73e2b commit b329ce3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/types/closure.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ let mut s = String::from("foo");
let t = String::from("bar");

f(|| {
s += &*t;
s += &t;
s
});
// Prints "foobar".
Expand Down

0 comments on commit b329ce3

Please sign in to comment.