doc: add missing "by default"

That sentence made it look like there was no option for using 'mut'
This commit is contained in:
Tshepang Lekhonkhobe 2014-12-21 09:32:32 +02:00
parent cc19e3380b
commit 7d55249c91

View File

@ -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 {