Skip to content

Commit eea1b1c

Browse files
yeahwhatevermarijnh
authored andcommitted
---
yaml --- r: 7793 b: refs/heads/snap-stage3 c: b02b65a h: refs/heads/master i: 7791: 9abbb08 v: v3
1 parent 1e8a7c1 commit eea1b1c

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
---
22
refs/heads/master: 2898dcc5d97da9427ac367542382b6239d9c0bbf
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
4-
refs/heads/snap-stage3: 8ae4868419ea19a8b583a75e8fc458ad1fa342ed
4+
refs/heads/snap-stage3: b02b65a5476000b62586fa09b03eb1f20d55bb61
55
refs/heads/try: 2898dcc5d97da9427ac367542382b6239d9c0bbf
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/snap-stage3/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)