Skip to content

Commit 69bfb6f

Browse files
committed
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

+1-1
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)