Skip to content

Commit 0c390d2

Browse files
committed
point supposed to be immutable in this example
1 parent 750f2c6 commit 0c390d2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/mutability.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,7 @@ struct Point {
169169
y: Cell<i32>,
170170
}
171171
172-
let mut point = Point { x: 5, y: Cell::new(6) };
172+
let point = Point { x: 5, y: Cell::new(6) };
173173
174174
point.y.set(7);
175175

0 commit comments

Comments
 (0)