Skip to content

Commit 2fea594

Browse files
committed
rollup merge of #20252: huonw/doc-no-ignore
2 parents 1c61e74 + 0204c1f commit 2fea594

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

src/doc/guide.md

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -482,7 +482,7 @@ src/main.rs:2 let x;
482482

483483
Giving it a type will compile, though:
484484

485-
```{ignore}
485+
```{rust}
486486
let x: int;
487487
```
488488

@@ -1044,7 +1044,9 @@ struct Point(int, int, int);
10441044

10451045
These two will not be equal, even if they have the same values:
10461046

1047-
```{rust,ignore}
1047+
```{rust}
1048+
# struct Color(int, int, int);
1049+
# struct Point(int, int, int);
10481050
let black = Color(0, 0, 0);
10491051
let origin = Point(0, 0, 0);
10501052
```
@@ -4286,7 +4288,9 @@ let square = |x: int| { x * x };
42864288
We've seen this before. We make a closure that takes an integer, and returns
42874289
its square.
42884290
4289-
```{rust,ignore}
4291+
```{rust}
4292+
# fn twice(x: int, f: |int| -> int) -> int { f(x) + f(x) }
4293+
# let square = |x: int| { x * x };
42904294
twice(5i, square); // evaluates to 50
42914295
```
42924296

0 commit comments

Comments
 (0)