From 7d55249c91eb556f13f7e5b7043b06747c5782af Mon Sep 17 00:00:00 2001 From: Tshepang Lekhonkhobe Date: Sun, 21 Dec 2014 09:32:32 +0200 Subject: [PATCH] doc: add missing "by default" That sentence made it look like there was no option for using 'mut' --- src/doc/guide.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index d739ad105fc87..d34ec45fb871a 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -1011,8 +1011,8 @@ in the original declaration. Finally, because fields have names, we can access the field through dot notation: `origin.x`. -The values in structs are immutable, like other bindings in Rust. However, you -can use `mut` to make them mutable: +The values in structs are immutable by default, like other bindings in Rust. +Use `mut` to make them mutable: ```{rust} struct Point {