Rollup merge of #60078 - matklad:patch-1, r=shepmaster

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:
Mazdak Farrokhzad 2019-04-19 06:03:24 +02:00 committed by GitHub
commit 08ee04e71e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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