Skip to content

Commit a5732fd

Browse files
committed
reflow the stack size story
1 parent a28f3c8 commit a5732fd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

library/std/src/thread/mod.rs

+4-2
Original file line numberDiff line numberDiff line change
@@ -124,8 +124,10 @@
124124
//!
125125
//! ## Stack size
126126
//!
127-
//! The default stack size is platform-dependent and subject to change. Currently it is 2MB on all
128-
//! Tier-1 platforms. There are two ways to manually specify the stack size for spawned threads:
127+
//! The default stack size is platform-dependent and subject to change.
128+
//! Currently, it is 2 MiB on all Tier-1 platforms.
129+
//!
130+
//! There are two ways to manually specify the stack size for spawned threads:
129131
//!
130132
//! * Build the thread with [`Builder`] and pass the desired stack size to [`Builder::stack_size`].
131133
//! * Set the `RUST_MIN_STACK` environment variable to an integer representing the desired stack

0 commit comments

Comments
 (0)