Rollup merge of #137492 - nabijaczleweli:master, r=thomcc

libstd: rustdoc: correct note on fds 0/1/2 pre-main

Closes: #137490
This commit is contained in:
许杰友 Jieyou Xu (Joe)
2025-03-16 13:19:52 +08:00
committed by GitHub

View File

@@ -174,7 +174,9 @@
//!
//! - after-main use of thread-locals, which also affects additional features:
//! - [`thread::current()`]
//! - before-main stdio file descriptors are not guaranteed to be open on unix platforms
//! - under UNIX, before main, file descriptors 0, 1, and 2 may be unchanged
//! (they are guaranteed to be open during main,
//! and are opened to /dev/null O_RDWR if they weren't open on program start)
//!
//!
//! [I/O]: io