about summary refs log tree commit diff
path: root/doc/tutorial.md
diff options
context:
space:
mode:
authorDiggory Hardy <diggory.hardy@gmail.com>2013-04-05 12:26:47 +0200
committerDiggory Hardy <diggory.hardy@gmail.com>2013-04-05 12:26:47 +0200
commite2a6feb8fe38be01512f0fd1ea08b1909f190892 (patch)
tree735fe7ec32f94ba6d62eb8f53481810f126a7383 /doc/tutorial.md
parent1e483c7b70a7369da3c1cd2c858cf2c3d455968c (diff)
downloadrust-e2a6feb8fe38be01512f0fd1ea08b1909f190892.tar.gz
rust-e2a6feb8fe38be01512f0fd1ea08b1909f190892.zip
Tutorial: spelling correction and move a failing test to an xfail-test marked code block.
Diffstat (limited to 'doc/tutorial.md')
-rw-r--r--doc/tutorial.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/doc/tutorial.md b/doc/tutorial.md
index 794f3089a10..5a47cefb33d 100644
--- a/doc/tutorial.md
+++ b/doc/tutorial.md
@@ -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.
 
 ~~~~