Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit a48a67e

Browse files
authoredMar 16, 2025
Unrolled build for rust-lang#137492
Rollup merge of rust-lang#137492 - nabijaczleweli:master, r=thomcc libstd: rustdoc: correct note on fds 0/1/2 pre-main Closes: rust-lang#137490
2 parents 5f3b84a + 74ec862 commit a48a67e

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎library/std/src/lib.rs

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

0 commit comments

Comments
 (0)
Failed to load comments.