about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorDylan DPC <99973273+Dylan-DPC@users.noreply.github.com>2023-02-19 13:03:39 +0530
committerGitHub <noreply@github.com>2023-02-19 13:03:39 +0530
commit47ec320ce6fb1d22c7c52913330dc167f851ff6f (patch)
treec809e7f50ba3ddc57acc163de371fba7b210b2cb /library/std/src
parentfcdbd1c07f0b6c8e7d8bbd727c6ca69a1af8c7e9 (diff)
parenta5732fdc93af4a6a694ef58e75399c2cc89762d0 (diff)
downloadrust-47ec320ce6fb1d22c7c52913330dc167f851ff6f.tar.gz
rust-47ec320ce6fb1d22c7c52913330dc167f851ff6f.zip
Rollup merge of #104659 - tshepang:reflow, r=workingjubilee
reflow the stack size story
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/thread/mod.rs6
1 files changed, 4 insertions, 2 deletions
diff --git a/library/std/src/thread/mod.rs b/library/std/src/thread/mod.rs
index 692ff0cbca6..489af776798 100644
--- a/library/std/src/thread/mod.rs
+++ b/library/std/src/thread/mod.rs
@@ -124,8 +124,10 @@
 //!
 //! ## Stack size
 //!
-//! The default stack size is platform-dependent and subject to change. Currently it is 2MB on all
-//! Tier-1 platforms. There are two ways to manually specify the stack size for spawned threads:
+//! The default stack size is platform-dependent and subject to change.
+//! Currently, it is 2 MiB on all Tier-1 platforms.
+//!
+//! There are two ways to manually specify the stack size for spawned threads:
 //!
 //! * Build the thread with [`Builder`] and pass the desired stack size to [`Builder::stack_size`].
 //! * Set the `RUST_MIN_STACK` environment variable to an integer representing the desired stack