doc: correct for-loop example
This commit is contained in:
parent
7350eba4b4
commit
0dd4fad3e3
@ -2078,7 +2078,7 @@ An example a for loop:
|
||||
let v: ~[foo] = ~[a, b, c];
|
||||
|
||||
for v.each |e| {
|
||||
bar(e);
|
||||
bar(*e);
|
||||
}
|
||||
~~~~
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user