Skip to content

Commit edd8612

Browse files
yeahwhatevermarijnh
authored andcommitted
Added a small note to help explain tag's in older code.
1 parent b02b65a commit edd8612

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

doc/rust.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1058,7 +1058,9 @@ accessed through the components `x` and `y`, and laid out in memory with the
10581058
An _enumeration item_ simultaneously declares a new nominal
10591059
[enumerated type](#enumerated-types) as well as a set of *constructors* that
10601060
can be used to create or pattern-match values of the corresponding enumerated
1061-
type.
1061+
type. Note that `enum` previously was refered to as a `tag`, however this
1062+
definition has been deprecated. While `tag` is no longer used, the two are
1063+
synonymous.
10621064

10631065
The constructors of an `enum` type may be recursive: that is, each constructor
10641066
may take an argument that refers, directly or indirectly, to the enumerated

0 commit comments

Comments
 (0)