diff options
| author | Steve Klabnik <steve@steveklabnik.com> | 2015-08-22 19:15:43 -0400 |
|---|---|---|
| committer | Steve Klabnik <steve@steveklabnik.com> | 2015-08-22 19:15:43 -0400 |
| commit | 3677a1feca0d37e6db3093818bd6c734e2e156ae (patch) | |
| tree | bd920197b74b3bc943b6b3710157359b3b9d1879 /src/rustllvm/RustWrapper.cpp | |
| parent | b3e9615ed40954cce8004c311f4043e29458dcb7 (diff) | |
| parent | d112274fcb7175248a42c3b83382835710558cf4 (diff) | |
| download | rust-3677a1feca0d37e6db3093818bd6c734e2e156ae.tar.gz rust-3677a1feca0d37e6db3093818bd6c734e2e156ae.zip | |
Rollup merge of #27924 - pornel:bookthreadjoin, r=steveklabnik
The chapter on concurrency has two examples that both start with:
let something = thread::spawn(…
but the returned values have different types, because the second example has `.join()` at the end of the expression.
I haven't noticed that join at first, and was wondering how is that possible that the result can have `.is_err()` and `.join()` methods.
I've changed the second example to have the same structure as the first, so they're easy to compare.
Diffstat (limited to 'src/rustllvm/RustWrapper.cpp')
0 files changed, 0 insertions, 0 deletions
