about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2014-09-13 14:42:02 -0400
committerSteve Klabnik <steve@steveklabnik.com>2014-09-15 13:23:12 -0400
commitdf6240dc9e6e97a4310909fa84baca90608baa98 (patch)
treea43e27b326f1318f06d28336e0e7c0b6f75cce78
parentb3432b267d74350d804b271f4e062cf8719ee80b (diff)
downloadrust-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.md6
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) {