Skip to content

Commit

Permalink
Rollup merge of rust-lang#60078 - matklad:patch-1, r=shepmaster
Browse files Browse the repository at this point in the history
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.
  • Loading branch information
Centril authored Apr 19, 2019
2 parents cc6b2e1 + be69785 commit 6c36023
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/libstd/thread/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 6c36023

Please sign in to comment.