about summary refs log tree commit diff
path: root/src
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-12-29 16:36:24 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-12-29 16:36:24 -0800
commit2fea5944446eca6a45a50cd4e2b92b1471232fa8 (patch)
tree5ea9c3f4d32b43129a7a3af4b330b3340f77cdf6 /src
parent1c61e74518e4dc8c3fdd7f14824b4e79befeefcb (diff)
parent0204c1faf63990f3151bc44efb156e1a4e413581 (diff)
downloadrust-2fea5944446eca6a45a50cd4e2b92b1471232fa8.tar.gz
rust-2fea5944446eca6a45a50cd4e2b92b1471232fa8.zip
rollup merge of #20252: huonw/doc-no-ignore
Diffstat (limited to 'src')
-rw-r--r--src/doc/guide.md10
1 files changed, 7 insertions, 3 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md
index dd0af170228..0ace9ba057a 100644
--- a/src/doc/guide.md
+++ b/src/doc/guide.md
@@ -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);
 ```
@@ -4286,7 +4288,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
 ```