Tutorial: rename variable to avoid confusion.

This commit is contained in:
Diggory Hardy 2013-04-04 15:08:25 +02:00
parent 5f13e9ccc2
commit cb91e91418

View File

@ -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