From 0c390d2f8e1cc2f29d9c1088387d375a929356a5 Mon Sep 17 00:00:00 2001 From: Alexander Polakov Date: Sun, 10 May 2015 22:37:06 +0300 Subject: [PATCH] point supposed to be immutable in this example --- src/doc/trpl/mutability.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/doc/trpl/mutability.md b/src/doc/trpl/mutability.md index 435407a8a967d..3e910aff9eafc 100644 --- a/src/doc/trpl/mutability.md +++ b/src/doc/trpl/mutability.md @@ -169,7 +169,7 @@ struct Point { y: Cell, } -let mut point = Point { x: 5, y: Cell::new(6) }; +let point = Point { x: 5, y: Cell::new(6) }; point.y.set(7);