Skip to content

Commit 3161a8f

Browse files
author
fmoko
authored
Fixed mangled sentence from book; edited for clarity (rust-lang#266)
Fixed mangled sentence from book; edited for clarity
2 parents 89c7364 + ade52ff commit 3161a8f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

exercises/enums/README.md

+3-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
### Enums
22

3-
Rust allows you to define a type called `enums` which allow you to enumerate possible values. In combination with enums, we have the concept of `pattern matching` in Rust, which makes it easy to run different code for different values of an enumeration. Enums, while available in many languages, Rust's enums are most similar to `algebraic data types` in functional languages, such as F#, OCaml, and Haskell.
3+
Rust allows you to define types called "enums" which enumerate possible values.
4+
Enums are a feature in many languages, but their capabilities differ in each language. Rust’s enums are most similar to algebraic data types in functional languages, such as F#, OCaml, and Haskell.
5+
Useful in combination with enums is Rust's "pattern matching" facility, which makes it easy to run different code for different values of an enumeration.
46

57
#### Book Sections
68

0 commit comments

Comments
 (0)