Tutorial: spelling correction and move a failing test to an xfail-test marked code block.
This commit is contained in:
parent
1e483c7b70
commit
e2a6feb8fe
@ -1081,7 +1081,9 @@ let mut d : @mut int; // and one of type managed mutable int
|
||||
|
||||
c = a; // box type is the same, okay
|
||||
d = b; // box type is the same, okay
|
||||
~~~~
|
||||
|
||||
~~~~ {.xfail-test}
|
||||
// but b cannot be assigned to c, or a to d
|
||||
c = b; // error
|
||||
~~~~
|
||||
@ -1101,7 +1103,7 @@ let y = x.clone(); // y is a newly allocated box
|
||||
let z = x; // no new memory allocated, x can no longer be used
|
||||
~~~~
|
||||
|
||||
Since in owned boxes mutabilility is a property of the owner, not the
|
||||
Since in owned boxes mutability is a property of the owner, not the
|
||||
box, mutable boxes may become immutable when they are moved, and vice-versa.
|
||||
|
||||
~~~~
|
||||
|
Loading…
Reference in New Issue
Block a user