Skip to content

Commit b329ce3

Browse files
authored
Merge pull request #853 from zancas/master
this '*' is unnecessary, and reduces readability
2 parents 4e6ea83 + 0d73e2b commit b329ce3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/closure.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ let mut s = String::from("foo");
1414
let t = String::from("bar");
1515

1616
f(|| {
17-
s += &*t;
17+
s += &t;
1818
s
1919
});
2020
// Prints "foobar".

0 commit comments

Comments
 (0)