Skip to content

Commit 585407f

Browse files
committed
Remove struct-like enum variant values.
These were removed in rust-lang/rust#103578.
1 parent 65c20b1 commit 585407f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/items/enumerations.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ enum Enum {
8383

8484
Variant constructors are similar to [struct] definitions, and can be referenced by a path from the enumeration name, including in [use declarations].
8585
Each variant defines its type in the [type namespace], though that type cannot be used as a type specifier.
86-
Each variant also defines a constructor in the [value namespace].
86+
Tuple-like and unit-like variants also define a constructor in the [value namespace].
8787

8888
A struct-like variant can be instantiated with a [struct expression].
8989
A tuple-like variant can be instantiated with a [call expression] or a [struct expression].

0 commit comments

Comments
 (0)