diff options
| author | Alexander Polakov <plhk@sdf.org> | 2015-05-10 22:37:06 +0300 |
|---|---|---|
| committer | Alexander Polakov <plhk@sdf.org> | 2015-05-10 22:37:06 +0300 |
| commit | 0c390d2f8e1cc2f29d9c1088387d375a929356a5 (patch) | |
| tree | 2226d1c72a1a9fa178c7334e5d175950af622afb | |
| parent | 750f2c63f2737305d33288303cdecb7a470a7922 (diff) | |
| download | rust-0c390d2f8e1cc2f29d9c1088387d375a929356a5.tar.gz rust-0c390d2f8e1cc2f29d9c1088387d375a929356a5.zip | |
point supposed to be immutable in this example
| -rw-r--r-- | src/doc/trpl/mutability.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/mutability.md b/src/doc/trpl/mutability.md index 435407a8a96..3e910aff9ea 100644 --- a/src/doc/trpl/mutability.md +++ b/src/doc/trpl/mutability.md @@ -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); |
