Skip to content

Commit 7d55249

Browse files
committed
doc: add missing "by default"
That sentence made it look like there was no option for using 'mut'
1 parent cc19e33 commit 7d55249

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/doc/guide.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1011,8 +1011,8 @@ in the original declaration.
10111011
Finally, because fields have names, we can access the field through dot
10121012
notation: `origin.x`.
10131013

1014-
The values in structs are immutable, like other bindings in Rust. However, you
1015-
can use `mut` to make them mutable:
1014+
The values in structs are immutable by default, like other bindings in Rust.
1015+
Use `mut` to make them mutable:
10161016

10171017
```{rust}
10181018
struct Point {

0 commit comments

Comments
 (0)