Skip to content

Commit 8c88f9d

Browse files
authored
Merge pull request #2232 from tshepang/patch-4
typo in example code
2 parents 36397c6 + 92eb701 commit 8c88f9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/types/closure.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -145,7 +145,7 @@ let mut u = (t, String::from("U"));
145145

146146
let c = || {
147147
println!("{:?}", u); // u captured by ImmBorrow
148-
u.1.truncate(0); // u.0 captured by MutBorrow
148+
u.1.truncate(0); // u.1 captured by MutBorrow
149149
move_value(u.0.0); // u.0.0 captured by ByValue
150150
};
151151
c();

0 commit comments

Comments
 (0)