Skip to content

Commit cb91e91

Browse files
author
Diggory Hardy
committed
Tutorial: rename variable to avoid confusion.
1 parent 5f13e9c commit cb91e91

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

doc/tutorial.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1191,7 +1191,7 @@ they are frozen:
11911191
let x = @mut 5;
11921192
let y = x;
11931193
{
1194-
let y = &*y; // the managed box is now frozen
1194+
let z = &*y; // the managed box is now frozen
11951195
// modifying it through x or y will cause a task failure
11961196
}
11971197
// the box is now unfrozen again

0 commit comments

Comments
 (0)