mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-08 01:28:18 +03:00
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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user