Skip to content

Commit

Permalink
Merge pull request rust-lang#1017 from notriddle/patch-2
Browse files Browse the repository at this point in the history
Rename C-like enum to Field-less enum
  • Loading branch information
steveklabnik authored Dec 5, 2017
2 parents 30c6b58 + 5e4b67f commit fd88884
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion first-edition/src/casting-between-types.md
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ A cast `e as U` is valid if `e` has type `T` and `T` *coerces* to `U`.
A cast `e as U` is also valid in any of the following cases:

* `e` has type `T` and `T` and `U` are any numeric types; *numeric-cast*
* `e` is a C-like enum (with no data attached to the variants),
* `e` is an enum with no data attached to the variants (a "field-less enumeration"),
and `U` is an integer type; *enum-cast*
* `e` has type `bool` or `char` and `U` is an integer type; *prim-int-cast*
* `e` has type `u8` and `U` is `char`; *u8-char-cast*
Expand Down

0 comments on commit fd88884

Please sign in to comment.