doc: correct for-loop example
This commit is contained in:
parent
7350eba4b4
commit
0dd4fad3e3
1 changed files with 1 additions and 1 deletions
|
|
@ -2078,7 +2078,7 @@ An example a for loop:
|
|||
let v: ~[foo] = ~[a, b, c];
|
||||
|
||||
for v.each |e| {
|
||||
bar(e);
|
||||
bar(*e);
|
||||
}
|
||||
~~~~
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue