Skip to content

Commit 27c44c8

Browse files
committed
correct copy/paste typos in stdio.rs comments
I'm not 100% sure lines 63 and 73 are typos.
1 parent dcdcc6f commit 27c44c8

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libstd/io/stdio.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -56,21 +56,21 @@ struct StderrRaw(stdio::Stderr);
5656
/// The returned handle has no external synchronization or buffering.
5757
fn stdin_raw() -> io::Result<StdinRaw> { stdio::Stdin::new().map(StdinRaw) }
5858

59-
/// Constructs a new raw handle to the standard input stream of this process.
59+
/// Constructs a new raw handle to the standard output stream of this process.
6060
///
6161
/// The returned handle does not interact with any other handles created nor
6262
/// handles returned by `std::io::stdout`. Note that data is buffered by the
63-
/// `std::io::stdin` handles so writes which happen via this raw handle may
63+
/// `std::io::stdout` handles so writes which happen via this raw handle may
6464
/// appear before previous writes.
6565
///
6666
/// The returned handle has no external synchronization or buffering layered on
6767
/// top.
6868
fn stdout_raw() -> io::Result<StdoutRaw> { stdio::Stdout::new().map(StdoutRaw) }
6969

70-
/// Constructs a new raw handle to the standard input stream of this process.
70+
/// Constructs a new raw handle to the standard error stream of this process.
7171
///
7272
/// The returned handle does not interact with any other handles created nor
73-
/// handles returned by `std::io::stdout`.
73+
/// handles returned by `std::io::stderr`.
7474
///
7575
/// The returned handle has no external synchronization or buffering layered on
7676
/// top.

0 commit comments

Comments
 (0)