Skip to content

Commit 1f16437

Browse files
committed
fixes some syntax highlighting annotations
1 parent 43f040d commit 1f16437

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/doc/guide.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1076,7 +1076,7 @@ Finally, Rust has a "sum type", an **enum**. Enums are an incredibly useful
10761076
feature of Rust, and are used throughout the standard library. Enums look
10771077
like this:
10781078

1079-
```
1079+
```{rust}
10801080
enum Ordering {
10811081
Less,
10821082
Equal,
@@ -1088,7 +1088,7 @@ This is an enum that is provided by the Rust standard library. An `Ordering`
10881088
can only be _one_ of `Less`, `Equal`, or `Greater` at any given time. Here's
10891089
an example:
10901090

1091-
```rust
1091+
```{rust}
10921092
fn cmp(a: int, b: int) -> Ordering {
10931093
if a < b { Less }
10941094
else if a > b { Greater }
@@ -1155,7 +1155,7 @@ gotten there yet!
11551155

11561156
You can have any number of values in an enum:
11571157

1158-
```
1158+
```{rust}
11591159
enum OptionalColor {
11601160
Color(int, int, int),
11611161
Missing
@@ -1652,7 +1652,7 @@ a full line of input. Nice and easy.
16521652

16531653
Do you remember this code?
16541654

1655-
```
1655+
```{rust}
16561656
enum OptionalInt {
16571657
Value(int),
16581658
Missing,

0 commit comments

Comments
 (0)