From 13e1c7a5abb14718947f2082f92880ae1143ad75 Mon Sep 17 00:00:00 2001 From: Steve Klabnik Date: Sat, 13 Sep 2014 14:42:02 -0400 Subject: [PATCH] properly annotate C code in the guide Without 'notrust,' we were getting a playpen link. Fixes #17228. --- src/doc/guide.md | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/doc/guide.md b/src/doc/guide.md index 140536543d93d..c8e190761699d 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,notrust} 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) {