Skip to content

Commit df6240d

Browse files
committed
properly annotate C code in the guide
Without 'notrust,' we were getting a playpen link. Fixes #17228.
1 parent b3432b2 commit df6240d

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/guide.md

+3-3
Original file line numberDiff line numberDiff line change
@@ -1281,15 +1281,15 @@ two main looping constructs: `for` and `while`.
12811281

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

1286-
```{ignore,c}
1286+
```{c}
12871287
for (x = 0; x < 10; x++) {
12881288
printf( "%d\n", x );
12891289
}
12901290
```
12911291

1292-
It looks like this:
1292+
Instead, it looks like this:
12931293

12941294
```{rust}
12951295
for x in range(0i, 10i) {

0 commit comments

Comments
 (0)