Skip to content

Commit 373453c

Browse files
brsongraydon
authored andcommitted
---
yaml --- r: 303 b: refs/heads/master c: 0633c7a h: refs/heads/master i: 301: 637ba81 299: 18617e3 295: b25fdcf 287: a6530ed v: v3
1 parent 04bb034 commit 373453c

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1c1dc651a70a1c8a1ee2ca896f4cc29ec88b363c
2+
refs/heads/master: 0633c7ae6e54edebde8421cef14267ad1ba1e30c

trunk/doc/rust.texi

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2193,9 +2193,9 @@ a = cat;
21932193

21942194
An example of a @emph{recursive} @code{tag} type and its use:
21952195
@example
2196-
type list[T] = tag(nil,
2196+
type list[T] = tag(nil(),
21972197
cons(T, @@list[T]));
2198-
let list[int] a = cons(7, cons(13, nil));
2198+
let list[int] a = cons(7, cons(13, nil()));
21992199
@end example
22002200

22012201

@@ -3315,9 +3315,9 @@ control enters the block.
33153315
An example of a pattern @code{alt} statement:
33163316

33173317
@example
3318-
type list[X] = tag(nil, cons(X, @@list[X]));
3318+
type list[X] = tag(nil(), cons(X, @@list[X]));
33193319
3320-
let list[int] x = cons(10, cons(11, nil));
3320+
let list[int] x = cons(10, cons(11, nil()));
33213321
33223322
alt (x) @{
33233323
case (cons(a, cons(b, _))) @{

0 commit comments

Comments
 (0)