Skip to content

Commit b36fd55

Browse files
authored
Rollup merge of #101270 - m-ou-se:update-comment, r=joshtriplett
Update outdated comment about output capturing in print_to.
2 parents cbcea24 + a20318d commit b36fd55

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

library/std/src/io/stdio.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -986,10 +986,10 @@ pub fn set_output_capture(sink: Option<LocalStream>) -> Option<LocalStream> {
986986
/// otherwise. `label` identifies the stream in a panic message.
987987
///
988988
/// This function is used to print error messages, so it takes extra
989-
/// care to avoid causing a panic when `local_s` is unusable.
990-
/// For instance, if the TLS key for the local stream is
991-
/// already destroyed, or if the local stream is locked by another
992-
/// thread, it will just fall back to the global stream.
989+
/// care to avoid causing a panic when `OUTPUT_CAPTURE` is unusable.
990+
/// For instance, if the TLS key for output capturing is already destroyed, or
991+
/// if the local stream is in use by another thread, it will just fall back to
992+
/// the global stream.
993993
///
994994
/// However, if the actual I/O causes an error, this function does panic.
995995
fn print_to<T>(args: fmt::Arguments<'_>, global_s: fn() -> T, label: &str)

0 commit comments

Comments
 (0)