mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-03 20:23:59 +00:00
rollup merge of #18495 : rolfvandekrol/intro-fix
This commit is contained in:
commit
ceb5404ee8
@ -494,14 +494,14 @@ non-deterministic aspect:
|
|||||||
$ cargo run
|
$ cargo run
|
||||||
Compiling hello_world v0.0.1 (file:///Users/you/src/hello_world)
|
Compiling hello_world v0.0.1 (file:///Users/you/src/hello_world)
|
||||||
Running `target/hello_world`
|
Running `target/hello_world`
|
||||||
numbers[1] is 2
|
numbers[1] is 3
|
||||||
numbers[0] is 1
|
numbers[0] is 2
|
||||||
numbers[2] is 3
|
numbers[2] is 4
|
||||||
$ cargo run
|
$ cargo run
|
||||||
Running `target/hello_world`
|
Running `target/hello_world`
|
||||||
numbers[2] is 3
|
numbers[2] is 4
|
||||||
numbers[1] is 2
|
numbers[1] is 3
|
||||||
numbers[0] is 1
|
numbers[0] is 2
|
||||||
```
|
```
|
||||||
|
|
||||||
Each time, we get a slightly different output, because each thread works in a
|
Each time, we get a slightly different output, because each thread works in a
|
||||||
|
Loading…
Reference in New Issue
Block a user