point supposed to be immutable in this example

This commit is contained in:
Alexander Polakov 2015-05-10 22:37:06 +03:00
parent 750f2c63f2
commit 0c390d2f8e

View File

@ -169,7 +169,7 @@ struct Point {
y: Cell<i32>,
}
let mut point = Point { x: 5, y: Cell::new(6) };
let point = Point { x: 5, y: Cell::new(6) };
point.y.set(7);