Skip to content

Commit 92eb701

Browse files
authored
typo in example code
1 parent 18d4246 commit 92eb701

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)