Skip to content

Commit 7f481c6

Browse files
yeahwhatevermarijnh
authored andcommitted
---
yaml --- r: 13779 b: refs/heads/try c: b02b65a h: refs/heads/master i: 13777: b4a5e1c 13775: 575e160 v: v3
1 parent aa85f1a commit 7f481c6

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
@@ -2,5 +2,5 @@
22
refs/heads/master: 61b1875c16de39c166b0f4d54bba19f9c6777d1a
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: 4a81779abd786ff22d71434c6d9a5917ea4cdfff
5-
refs/heads/try: 8ae4868419ea19a8b583a75e8fc458ad1fa342ed
5+
refs/heads/try: b02b65a5476000b62586fa09b03eb1f20d55bb61
66
refs/tags/release-0.1: 1f5c5126e96c79d22cb7862f75304136e204f105

branches/try/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)