Skip to content

Commit 0d73e2b

Browse files
committed
this '*' is unnecessary, and reduces readability
1 parent 4e6ea83 commit 0d73e2b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/types/closure.md

Lines changed: 1 addition & 1 deletion
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)