about summary refs log tree commit diff
path: root/doc/tutorial-container.md
diff options
context:
space:
mode:
authorDaniel Micay <danielmicay@gmail.com>2013-08-19 18:15:01 -0400
committerDaniel Micay <danielmicay@gmail.com>2013-08-20 22:05:46 -0400
commit5f3a637b7cbd026d0cb8f8ce2139fa6287d06b56 (patch)
tree53777a590ab74ab23e7f58446246c8140872cf12 /doc/tutorial-container.md
parent7727920ba279fbef9f55ffa2c334778c7ef25fc3 (diff)
downloadrust-5f3a637b7cbd026d0cb8f8ce2139fa6287d06b56.tar.gz
rust-5f3a637b7cbd026d0cb8f8ce2139fa6287d06b56.zip
enable tests for the container tutorial
Diffstat (limited to 'doc/tutorial-container.md')
-rw-r--r--doc/tutorial-container.md6
1 files changed, 3 insertions, 3 deletions
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<A> FromIterator<A> for ~[A] {
     pub fn from_iterator<T: Iterator<A>>(iterator: &mut T) -> ~[A] {
         let (lower, _) = iterator.size_hint();
@@ -237,7 +237,7 @@ impl<A> FromIterator<A> 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<uint>) { (0, None) }
 ~~~