Skip to content

Commit a2edb16

Browse files
mbrubeckbrson
authored andcommitted
---
yaml --- r: 5839 b: refs/heads/master c: db84029 h: refs/heads/master i: 5837: c4a276f 5835: 67e560b 5831: e5b2cb4 5823: cdd9ec2 v: v3
1 parent 2b4ecb1 commit a2edb16

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
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: 16a58855559d8a9d170de94d0452d27785f30729
2+
refs/heads/master: db84029268b9bbebe153d0a99920089126f79154

trunk/doc/rust.texi

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2008,7 +2008,7 @@ iter range(lo: int, hi: int) -> int @{
20082008
@}
20092009
20102010
let sum: int = 0;
2011-
for each (x: int in range(0,100)) @{
2011+
for each x: int in range(0,100) @{
20122012
sum += x;
20132013
@}
20142014
@end example
@@ -2464,7 +2464,7 @@ iter range(x: int, y: int) -> int @{
24642464
@}
24652465
@}
24662466
2467-
for each (i: int in range(5,7)) @{
2467+
for each i: int in range(5,7) @{
24682468
@dots{};
24692469
@}
24702470
@end example
@@ -3172,7 +3172,7 @@ fn read_file_lines(path: str) -> [str] @{
31723172
note path;
31733173
let r: [str];
31743174
let f: file = open_read(path);
3175-
for each (s: str in lines(f)) @{
3175+
for each s: str in lines(f) @{
31763176
vec::append(r,s);
31773177
@}
31783178
ret r;
@@ -3271,7 +3271,7 @@ Example a for loop:
32713271
@example
32723272
let v: [foo] = [a, b, c];
32733273
3274-
for (foo e in v) @{
3274+
for e: foo in v @{
32753275
bar(e);
32763276
@}
32773277
@end example
@@ -3291,7 +3291,7 @@ Example of a foreach loop:
32913291
@example
32923292
let txt: str;
32933293
let lines: [str];
3294-
for each (s: str in str::split(txt, "\n")) @{
3294+
for each s: str in str::split(txt, "\n") @{
32953295
vec::push(lines, s);
32963296
@}
32973297
@end example

0 commit comments

Comments
 (0)