Skip to content

Commit 9e95bca

Browse files
committed
---
yaml --- r: 1467 b: refs/heads/master c: e2d36e0 h: refs/heads/master i: 1465: 23a86d4 1463: 1192503 v: v3
1 parent 036503a commit 9e95bca

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
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: 727970c2309d6451f501f248f8100c72649ccece
2+
refs/heads/master: e2d36e00ce2b58272b52a5c1f999b0bcb61d066b

trunk/doc/rust.texi

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1990,22 +1990,22 @@ module system).
19901990
An example of a @code{tag} item and its use:
19911991
@example
19921992
tag animal @{
1993-
dog();
1994-
cat();
1993+
dog;
1994+
cat;
19951995
@}
19961996
1997-
let animal a = dog();
1998-
a = cat();
1997+
let animal a = dog;
1998+
a = cat;
19991999
@end example
20002000

20012001
An example of a @emph{recursive} @code{tag} item and its use:
20022002
@example
20032003
tag list[T] @{
2004-
nil();
2004+
nil;
20052005
cons(T, @@list[T]);
20062006
@}
20072007
2008-
let list[int] a = cons(7, cons(13, nil()));
2008+
let list[int] a = cons(7, cons(13, nil));
20092009
@end example
20102010

20112011

@@ -3401,9 +3401,9 @@ control enters the block.
34013401
An example of a pattern @code{alt} statement:
34023402

34033403
@example
3404-
type list[X] = tag(nil(), cons(X, @@list[X]));
3404+
type list[X] = tag(nil, cons(X, @@list[X]));
34053405
3406-
let list[int] x = cons(10, cons(11, nil()));
3406+
let list[int] x = cons(10, cons(11, nil));
34073407
34083408
alt (x) @{
34093409
case (cons(a, cons(b, _))) @{

0 commit comments

Comments
 (0)