Skip to content

Commit b02b65a

Browse files
yeahwhatevermarijnh
authored andcommitted
Remove stale references to tags, replaced with enums.
1 parent 8ae4868 commit b02b65a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

doc/rust.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2007,7 +2007,7 @@ alt_pat : pat [ "to" pat ] ? [ "if" expr ] ;
20072007

20082008
An `alt` expression branches on a *pattern*. The exact form of matching that
20092009
occurs depends on the pattern. Patterns consist of some combination of
2010-
literals, destructured tag constructors, records and tuples, variable binding
2010+
literals, destructured enum constructors, records and tuples, variable binding
20112011
specifications and placeholders (`_`). An `alt` expression has a *head
20122012
expression*, which is the value to compare to the patterns. The type of the
20132013
patterns must equal the type of the head expression.
@@ -2022,7 +2022,7 @@ An example of an `alt` expression:
20222022

20232023

20242024
~~~~
2025-
tag list<X> { nil; cons(X, @list<X>); }
2025+
enum list<X> { nil; cons(X, @list<X>); }
20262026
20272027
let x: list<int> = cons(10, @cons(11, @nil));
20282028
@@ -3286,7 +3286,7 @@ such as vectors, strings, and the low level communication system (ports,
32863286
channels, tasks).
32873287

32883288
Support for other built-in types such as simple types, tuples, records, and
3289-
tags is open-coded by the Rust compiler.
3289+
enums is open-coded by the Rust compiler.
32903290

32913291

32923292

0 commit comments

Comments
 (0)