diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2014-09-13 14:42:02 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2014-09-15 13:23:12 -0400 |
| commit | df6240dc9e6e97a4310909fa84baca90608baa98 (patch) | |
| tree | a43e27b326f1318f06d28336e0e7c0b6f75cce78 | |
| parent | b3432b267d74350d804b271f4e062cf8719ee80b (diff) | |
| download | rust-df6240dc9e6e97a4310909fa84baca90608baa98.tar.gz rust-df6240dc9e6e97a4310909fa84baca90608baa98.zip | |
properly annotate C code in the guide
Without 'notrust,' we were getting a playpen link. Fixes #17228.
| -rw-r--r-- | src/doc/guide.md | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md index 140536543d9..c769528c753 100644 --- a/src/doc/guide.md +++ b/src/doc/guide.md @@ -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) { |
