From 5e4b67f47da39e49189f34acc4a758ca32c58234 Mon Sep 17 00:00:00 2001 From: Michael Howell Date: Wed, 22 Nov 2017 10:50:20 -0700 Subject: [PATCH] Rename C-like enum to Field-less enum There is no need to reference the C programming language to explain this concept. --- first-edition/src/casting-between-types.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/first-edition/src/casting-between-types.md b/first-edition/src/casting-between-types.md index 26cd71847..d565aa9dc 100644 --- a/first-edition/src/casting-between-types.md +++ b/first-edition/src/casting-between-types.md @@ -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*