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:
Aleksey Kladov
2019-04-18 14:58:38 +03:00
committed by GitHub
parent e577e49b9f
commit be69785ea2

View File

@@ -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