]> git.lizzy.rs Git - rust.git/commitdiff
Remove some `ignore`s from the guide.
authorHuon Wilson <dbau.pp+github@gmail.com>
Sat, 27 Dec 2014 00:32:25 +0000 (11:32 +1100)
committerHuon Wilson <dbau.pp+github@gmail.com>
Sat, 27 Dec 2014 00:32:25 +0000 (11:32 +1100)
src/doc/guide.md

index 22cbd18a86520a46f8b9c2998ae28fc8b53f32c9..bb6fcea32acb982a1c88c406c0e022e54c963dcc 100644 (file)
@@ -482,7 +482,7 @@ src/main.rs:2     let x;
 
 Giving it a type will compile, though:
 
-```{ignore}
+```{rust}
 let x: int;
 ```
 
@@ -1044,7 +1044,9 @@ struct Point(int, int, int);
 
 These two will not be equal, even if they have the same values:
 
-```{rust,ignore}
+```{rust}
+# struct Color(int, int, int);
+# struct Point(int, int, int);
 let black  = Color(0, 0, 0);
 let origin = Point(0, 0, 0);
 ```
@@ -4290,7 +4292,9 @@ let square = |x: int| { x * x };
 We've seen this before. We make a closure that takes an integer, and returns
 its square.
 
-```{rust,ignore}
+```{rust}
+# fn twice(x: int, f: |int| -> int) -> int { f(x) + f(x) }
+# let square = |x: int| { x * x };
 twice(5i, square); // evaluates to 50
 ```