Tutorial: rename variable to avoid confusion.
This commit is contained in:
parent
5f13e9ccc2
commit
cb91e91418
1 changed files with 1 additions and 1 deletions
|
@ -1191,7 +1191,7 @@ they are frozen:
|
|||
let x = @mut 5;
|
||||
let y = x;
|
||||
{
|
||||
let y = &*y; // the managed box is now frozen
|
||||
let z = &*y; // the managed box is now frozen
|
||||
// modifying it through x or y will cause a task failure
|
||||
}
|
||||
// the box is now unfrozen again
|
||||
|
|
Loading…
Add table
Reference in a new issue