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.
This commit is contained in:
parent
e577e49b9f
commit
be69785ea2
1 changed files with 1 additions and 1 deletions
|
@ -269,7 +269,7 @@ impl Builder {
|
||||||
///
|
///
|
||||||
/// let builder = thread::Builder::new()
|
/// let builder = thread::Builder::new()
|
||||||
/// .name("foo".into())
|
/// .name("foo".into())
|
||||||
/// .stack_size(10);
|
/// .stack_size(32 * 1024);
|
||||||
///
|
///
|
||||||
/// let handler = builder.spawn(|| {
|
/// let handler = builder.spawn(|| {
|
||||||
/// // thread code
|
/// // thread code
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue