Skip to content
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

Doc fix rollup #17277

Merged
merged 4 commits into from
Sep 17, 2014
Merged
Changes from 1 commit
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
Prev Previous commit
Next Next commit
properly annotate C code in the guide
Without 'notrust,' we were getting a playpen link.

Fixes #17228.
  • Loading branch information
steveklabnik committed Sep 15, 2014
commit df6240dc9e6e97a4310909fa84baca90608baa98
6 changes: 3 additions & 3 deletions src/doc/guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -1281,15 +1281,15 @@ two main looping constructs: `for` and `while`.

The `for` loop is used to loop a particular number of times. Rust's `for` loops
work a bit differently than in other systems languages, however. Rust's `for`
loop doesn't look like this C `for` loop:
loop doesn't look like this "C style" `for` loop:

```{ignore,c}
```{c}
for (x = 0; x < 10; x++) {
printf( "%d\n", x );
}
```

It looks like this:
Instead, it looks like this:

```{rust}
for x in range(0i, 10i) {
Expand Down