File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -1073,8 +1073,8 @@ destructuring `let`.
1073
1073
## Enums
1074
1074
1075
1075
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 :
1078
1078
1079
1079
``` {rust}
1080
1080
enum Ordering {
@@ -1084,9 +1084,8 @@ enum Ordering {
1084
1084
}
1085
1085
```
1086
1086
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:
1090
1089
1091
1090
``` {rust}
1092
1091
fn cmp(a: int, b: int) -> Ordering {
You can’t perform that action at this time.
0 commit comments