Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 69bfb6f

Browse files
committedFeb 28, 2015
change to iterate over &vet
1 parent 05bdfe8 commit 69bfb6f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/doc/intro.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -565,7 +565,7 @@ while retaining safety. The answer is iterators:
565565
```{rust}
566566
let vec = vec![1, 2, 3];
567567
568-
for x in vec {
568+
for x in &vec {
569569
println!("{}", x);
570570
}
571571
```

0 commit comments

Comments
 (0)
Please sign in to comment.