Skip to content

Commit

Permalink
Remove stale references to tags, replaced with enums.
Browse files Browse the repository at this point in the history
  • Loading branch information
yeahwhatever authored and marijnh committed Jan 25, 2012
1 parent 8ae4868 commit b02b65a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions doc/rust.md
Expand Up @@ -2007,7 +2007,7 @@ alt_pat : pat [ "to" pat ] ? [ "if" expr ] ;

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


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

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



Expand Down

0 comments on commit b02b65a

Please sign in to comment.