Skip to content

Remove some ignores from the guide. #20252

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Dec 30, 2014
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions src/doc/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ src/main.rs:2 let x;

Giving it a type will compile, though:

```{ignore}
```{rust}
let x: int;
```

Expand Down Expand Up @@ -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);
```
Expand Down Expand Up @@ -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
```

Expand Down