We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6b14719 + 69bfb6f commit 0775959Copy full SHA for 0775959
src/doc/intro.md
@@ -536,7 +536,7 @@ use std::thread::Thread;
536
537
fn main() {
538
let numbers = vec![1, 2, 3];
539
-
+
540
let guards: Vec<_> = (0..3).map(|i| {
541
Thread::scoped(move || {
542
println!("{}", numbers[i]);
@@ -565,7 +565,7 @@ while retaining safety. The answer is iterators:
565
```{rust}
566
let vec = vec![1, 2, 3];
567
568
-for x in vec.iter() {
+for x in &vec {
569
println!("{}", x);
570
}
571
```
0 commit comments