Skip to content

Commit addb730

Browse files
committed
---
yaml --- r: 4537 b: refs/heads/master c: a38a1b6 h: refs/heads/master i: 4535: e51d033 v: v3
1 parent 3de1a97 commit addb730

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

[refs]

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,2 @@
11
---
2-
refs/heads/master: 1dd9240e56a4059684805b71580cbcc59e59fa64
2+
refs/heads/master: a38a1b6c7ae87953e51b5a1c93c974f7b9b08ec9

trunk/doc/rust.texi

+5-5
Original file line numberDiff line numberDiff line change
@@ -2357,7 +2357,7 @@ iter range(int x, int y) -> int @{
23572357
@}
23582358
@}
23592359
2360-
for each (int i in range(5,7)) @{
2360+
for each (i: int in range(5,7)) @{
23612361
@dots{};
23622362
@}
23632363
@end example
@@ -3239,9 +3239,9 @@ An example of a @code{note} expression:
32393239
@example
32403240
fn read_file_lines(&str path) -> vec[str] @{
32413241
note path;
3242-
vec[str] r;
3243-
file f = open_read(path);
3244-
for each (str s in lines(f)) @{
3242+
let r: vec[str];
3243+
let f: file = open_read(path);
3244+
for each (s: str in lines(f)) @{
32453245
vec::append(r,s);
32463246
@}
32473247
ret r;
@@ -3374,7 +3374,7 @@ Example of a foreach loop:
33743374
@example
33753375
let txt: str;
33763376
let lines: vec[str];
3377-
for each (str s in str::split(txt, "\n")) @{
3377+
for each (s: str in str::split(txt, "\n")) @{
33783378
vec::push(lines, s);
33793379
@}
33803380
@end example

0 commit comments

Comments
 (0)