We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8b6987a commit 6476a1eCopy full SHA for 6476a1e
src/doc/trpl/structs.md
@@ -55,8 +55,8 @@ fn main() {
55
56
This will print `The point is at (5, 0)`.
57
58
-Rust does not support mutability at the field level, so you cannot write
59
-something like this:
+Rust does not support field mutability at the language level, so you cannot
+write something like this:
60
61
```rust,ignore
62
struct Point {
@@ -82,8 +82,8 @@ fn main() {
82
83
point.x = 5;
84
85
- let point = point; // this new binding is immutable
+ let point = point; // this new binding can’t change now
86
87
- point.y = 6; // this causes an error, because `point` is immutable!
+ point.y = 6; // this causes an error
88
}
89
```
0 commit comments