Skip to content

Commit

Permalink
doc: add missing "by default"
Browse files Browse the repository at this point in the history
That sentence made it look like there was no option for using 'mut'
  • Loading branch information
tshepang committed Dec 21, 2014
1 parent cc19e33 commit 7d55249
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/doc/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 7d55249

Please sign in to comment.