]> git.lizzy.rs Git - rust.git/commit
Rollup merge of #41854 - gamazeps:thread-spawn-doc, r=steveklabnik
authorSteve Klabnik <steve@steveklabnik.com>
Wed, 10 May 2017 15:18:33 +0000 (17:18 +0200)
committerGitHub <noreply@github.com>
Wed, 10 May 2017 15:18:33 +0000 (17:18 +0200)
commit42ce11eb5a2505e556137e1fa90324722aec5256
tree92da3f549c1918da27f7e1cca4e85c8261d78b5c
parentec85859d9a6735f5f8c2f7f203fa54b49ba8c946
parentfe7b6db39b6efa064ab795103342ca3d298dc943
Rollup merge of #41854 - gamazeps:thread-spawn-doc, r=steveklabnik

[Doc] Improve `thread::spawn` documentation

Part of #29378

- Add two examples to `thread::spawn` doumentation that show common uses of threads.
- Add a link to `thread::Builder` in the `thread::spawn` documentation for configuring threads.
- Add a link to `thread::spawn` in `thread::Builder` in order to avoid documentation duplication.

r? @steveklabnik
src/libstd/thread/mod.rs