about summary refs log tree commit diff
diff options
context:
space:
mode:
authorSteve Klabnik <steve@steveklabnik.com>2014-08-20 16:56:29 -0400
committerSteve Klabnik <steve@steveklabnik.com>2014-08-20 16:56:29 -0400
commitd1e37399a2e7ca35ccb49f75fb24f114abc1f6fa (patch)
tree55c40e78fc698e4e2f36dc0acf63a5a77d117c1d
parent655600b01b88c2fb2f91965e2b505068db7d808f (diff)
downloadrust-d1e37399a2e7ca35ccb49f75fb24f114abc1f6fa.tar.gz
rust-d1e37399a2e7ca35ccb49f75fb24f114abc1f6fa.zip
Make note that Ordering is builtin.
This way people won't try to copy/paste it in.
-rw-r--r--src/doc/guide.md11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/doc/guide.md b/src/doc/guide.md
index 94c77efc94d..3672bec7042 100644
--- a/src/doc/guide.md
+++ b/src/doc/guide.md
@@ -1073,10 +1073,10 @@ destructuring `let`.
 ## Enums
 
 Finally, Rust has a "sum type", an **enum**. Enums are an incredibly useful
-feature of Rust, and are used throughout the standard library. Enums look
-like this:
+feature of Rust, and are used throughout the standard library. This is an enum
+that is provided by the Rust standard library:
 
-```
+```{rust}
 enum Ordering {
     Less,
     Equal,
@@ -1084,9 +1084,8 @@ enum Ordering {
 }
 ```
 
-This is an enum that is provided by the Rust standard library. An `Ordering`
-can only be _one_ of `Less`, `Equal`, or `Greater` at any given time. Here's
-an example:
+An `Ordering` can only be _one_ of `Less`, `Equal`, or `Greater` at any given
+time. Here's an example:
 
 ```rust
 fn cmp(a: int, b: int) -> Ordering {