From e2a6feb8fe38be01512f0fd1ea08b1909f190892 Mon Sep 17 00:00:00 2001 From: Diggory Hardy Date: Fri, 5 Apr 2013 12:26:47 +0200 Subject: [PATCH] Tutorial: spelling correction and move a failing test to an xfail-test marked code block. --- doc/tutorial.md | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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. ~~~~