Skip to content

Commit

Permalink
Use more realistic example for thread builder
Browse files Browse the repository at this point in the history
Stack size of 10 **bytes** does not make any sense: the minimal possible stack size is greater anyway.
  • Loading branch information
matklad authored Apr 18, 2019
1 parent e577e49 commit be69785
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 be69785

Please sign in to comment.