From db8d5b03050f71f999a1fe41703ef8626ee99c07 Mon Sep 17 00:00:00 2001 From: Deadbeef Date: Thu, 19 Aug 2021 04:44:20 +0000 Subject: [PATCH] Revert "fieldless" back to "C-like" --- src/items/enumerations.md | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/items/enumerations.md b/src/items/enumerations.md index b023991e4..da0795ba2 100644 --- a/src/items/enumerations.md +++ b/src/items/enumerations.md @@ -78,13 +78,13 @@ In two circumstances, the discriminant of a variant may be explicitly set by following the variant name with `=` and a [constant expression]: -1. if the enumeration is fieldless; e.g.: +1. if the enumeration is "C-like" (i.e., it has no tuple or struct variants); e.g.: ```rust enum Enum { Foo = 3, - Bar() = 2, - Baz {} = 1, + Bar = 2, + Baz = 1, } ``` @@ -161,7 +161,7 @@ enum OverflowingDiscriminantError2 { [`mem::discriminant`] returns an opaque reference to the discriminant of an enum value which can be compared. This cannot be used to get the value -of the discriminant. +of the discriminant. #### Casting