Skip to content

Commit 941361b

Browse files
committed
rollup merge of rust-lang#20102: tshepang/patch-4
That sentence made it look like there was no option for using 'mut'
2 parents d3f3ae3 + 7d55249 commit 941361b

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
@@ -1010,8 +1010,8 @@ in the original declaration.
10101010
Finally, because fields have names, we can access the field through dot
10111011
notation: `origin.x`.
10121012

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

10161016
```{rust}
10171017
struct Point {

0 commit comments

Comments
 (0)