From 5f3a637b7cbd026d0cb8f8ce2139fa6287d06b56 Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Mon, 19 Aug 2013 18:15:01 -0400 Subject: enable tests for the container tutorial --- doc/tutorial-container.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'doc/tutorial-container.md') diff --git a/doc/tutorial-container.md b/doc/tutorial-container.md index bd706d41288..37ca561f74a 100644 --- a/doc/tutorial-container.md +++ b/doc/tutorial-container.md @@ -163,7 +163,7 @@ assert_eq!(sum, 57); The `for` keyword can be used as sugar for iterating through any iterator: ~~~ -let xs = [2, 3, 5, 7, 11, 13, 17]; +let xs = [2u, 3, 5, 7, 11, 13, 17]; // print out all the elements in the vector for x in xs.iter() { @@ -219,7 +219,7 @@ Containers can provide conversion from iterators through `collect` by implementing the `FromIterator` trait. For example, the implementation for vectors is as follows: -~~~ +~~~ {.xfail-test} impl FromIterator for ~[A] { pub fn from_iterator>(iterator: &mut T) -> ~[A] { let (lower, _) = iterator.size_hint(); @@ -237,7 +237,7 @@ impl FromIterator for ~[A] { The `Iterator` trait provides a `size_hint` default method, returning a lower bound and optionally on upper bound on the length of the iterator: -~~~ +~~~ {.xfail-test} fn size_hint(&self) -> (uint, Option) { (0, None) } ~~~ -- cgit 1.4.1-3-g733a5