Skip to content

Commit 0f93846

Browse files
Improve documentation of Stack size
1 parent 7c75fe4 commit 0f93846

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

library/std/src/thread/mod.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -124,9 +124,8 @@
124124
//!
125125
//! ## Stack size
126126
//!
127-
//! The default stack size for spawned threads is 2 MiB, though this particular stack size is
128-
//! subject to change in the future. There are two ways to manually specify the stack size for
129-
//! spawned threads:
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:
130129
//!
131130
//! * Build the thread with [`Builder`] and pass the desired stack size to [`Builder::stack_size`].
132131
//! * Set the `RUST_MIN_STACK` environment variable to an integer representing the desired stack

0 commit comments

Comments
 (0)