We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1e483c7 commit e2a6febCopy full SHA for e2a6feb
doc/tutorial.md
@@ -1081,7 +1081,9 @@ let mut d : @mut int; // and one of type managed mutable int
1081
1082
c = a; // box type is the same, okay
1083
d = b; // box type is the same, okay
1084
+~~~~
1085
1086
+~~~~ {.xfail-test}
1087
// but b cannot be assigned to c, or a to d
1088
c = b; // error
1089
~~~~
@@ -1101,7 +1103,7 @@ let y = x.clone(); // y is a newly allocated box
1101
1103
let z = x; // no new memory allocated, x can no longer be used
1102
1104
1105
-Since in owned boxes mutabilility is a property of the owner, not the
1106
+Since in owned boxes mutability is a property of the owner, not the
1107
box, mutable boxes may become immutable when they are moved, and vice-versa.
1108
1109
0 commit comments