Skip to content

Commit da796ed

Browse files
committed
auto merge of #16635 : steveklabnik/rust/ordering_comment, r=huonw
This way people won't try to copy/paste it in. This is provided as an alternate solution to #16003. What do you think, @treeman?
2 parents c509f79 + d1e3739 commit da796ed

File tree

1 file changed

+4
-5
lines changed

1 file changed

+4
-5
lines changed

src/doc/guide.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1073,8 +1073,8 @@ destructuring `let`.
10731073
## Enums
10741074

10751075
Finally, Rust has a "sum type", an **enum**. Enums are an incredibly useful
1076-
feature of Rust, and are used throughout the standard library. Enums look
1077-
like this:
1076+
feature of Rust, and are used throughout the standard library. This is an enum
1077+
that is provided by the Rust standard library:
10781078

10791079
```{rust}
10801080
enum Ordering {
@@ -1084,9 +1084,8 @@ enum Ordering {
10841084
}
10851085
```
10861086

1087-
This is an enum that is provided by the Rust standard library. An `Ordering`
1088-
can only be _one_ of `Less`, `Equal`, or `Greater` at any given time. Here's
1089-
an example:
1087+
An `Ordering` can only be _one_ of `Less`, `Equal`, or `Greater` at any given
1088+
time. Here's an example:
10901089

10911090
```{rust}
10921091
fn cmp(a: int, b: int) -> Ordering {

0 commit comments

Comments
 (0)