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`.
10731073## Enums
10741074
10751075Finally, 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}
10801080enum 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}
10921091fn cmp(a: int, b: int) -> Ordering {
You can’t perform that action at this time.
0 commit comments