Skip to content

Commit e2a6feb

Browse files
author
Diggory Hardy
committed
Tutorial: spelling correction and move a failing test to an xfail-test marked code block.
1 parent 1e483c7 commit e2a6feb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/tutorial.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1081,7 +1081,9 @@ let mut d : @mut int; // and one of type managed mutable int
10811081
10821082
c = a; // box type is the same, okay
10831083
d = b; // box type is the same, okay
1084+
~~~~
10841085

1086+
~~~~ {.xfail-test}
10851087
// but b cannot be assigned to c, or a to d
10861088
c = b; // error
10871089
~~~~
@@ -1101,7 +1103,7 @@ let y = x.clone(); // y is a newly allocated box
11011103
let z = x; // no new memory allocated, x can no longer be used
11021104
~~~~
11031105

1104-
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
11051107
box, mutable boxes may become immutable when they are moved, and vice-versa.
11061108

11071109
~~~~

0 commit comments

Comments
 (0)