diff options
| author | Aleksey Kladov <aleksey.kladov@gmail.com> | 2019-04-18 14:58:38 +0300 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-18 14:58:38 +0300 |
| commit | be69785ea210280e4aaeccbb28f34e153e86c2a0 (patch) | |
| tree | 7207369cce26e98e0c78c846455ff5225b0f8d69 /src/libstd/thread | |
| parent | e577e49b9f5ba0f1e9c3e66d67ef7cf82dc11c0e (diff) | |
| download | rust-be69785ea210280e4aaeccbb28f34e153e86c2a0.tar.gz rust-be69785ea210280e4aaeccbb28f34e153e86c2a0.zip | |
Use more realistic example for thread builder
Stack size of 10 **bytes** does not make any sense: the minimal possible stack size is greater anyway.
Diffstat (limited to 'src/libstd/thread')
| -rw-r--r-- | src/libstd/thread/mod.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libstd/thread/mod.rs b/src/libstd/thread/mod.rs index c59226e0c0b..fce28ffd9c3 100644 --- a/src/libstd/thread/mod.rs +++ b/src/libstd/thread/mod.rs @@ -269,7 +269,7 @@ impl Builder { /// /// let builder = thread::Builder::new() /// .name("foo".into()) - /// .stack_size(10); + /// .stack_size(32 * 1024); /// /// let handler = builder.spawn(|| { /// // thread code |
