]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #41994 - gamazeps:thread-builder, r=GuillaumeGomez
authorMark Simulacrum <mark.simulacrum@gmail.com>
Tue, 16 May 2017 14:18:30 +0000 (08:18 -0600)
committerGitHub <noreply@github.com>
Tue, 16 May 2017 14:18:30 +0000 (08:18 -0600)
commit18171a88617a3ee4e57e72e8d018bd3c30861191
treedc4f0187e42754b2152798c31f029f6640149a7e
parentefe285e0ff2007206fd23d7d2b6b21720a52e610
parenta51777ec874e31b29d85efaa186fe4841257b168
Rollup merge of #41994 - gamazeps:thread-builder, r=GuillaumeGomez

[Doc] Implrove `thread::Builder`'s doc.

Part of #29378 .

- Explains *why* we would use the builder instead ofthe free function.
- Changes the parent-child explanation for a spawned-caller in `thread::Builder::spawn`
- Adds a link to `io::Result` in `thread::Builder`
- Corrects the return type doc in `thread::Builder::spawn`

r? @rust-lang/docs
src/libstd/thread/mod.rs