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 381c08b commit 2750adbCopy full SHA for 2750adb
doc/tutorial.md
@@ -590,9 +590,8 @@ struct Point {
590
}
591
~~~~
592
593
-Inherited mutability means that any field of a struct may be mutable, if the
594
-struct is in a mutable slot (or a field of a struct in a mutable slot, and
595
-so forth).
+Structs have "inherited mutability", which means that any field of a struct
+may be mutable, if the struct is in a mutable slot.
596
597
With a value (say, `mypoint`) of such a type in a mutable location, you can do
598
`mypoint.y += 1.0`. But in an immutable location, such an assignment to a
0 commit comments