Skip to content

Commit 3e3cf73

Browse files
authored
Fix typos regarding stdout safety (#993)
1 parent aecc981 commit 3e3cf73

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/stdio.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -146,9 +146,9 @@ pub unsafe fn take_stdin() -> OwnedFd {
146146
///
147147
/// # Warning
148148
///
149-
/// This function allows reading directly from stdout without coordinating
149+
/// This function allows writing directly to stdout without coordinating
150150
/// with the buffering performed by [`std::io::Stdout`], so it could cause
151-
/// corrupted input.
151+
/// corrupted output.
152152
///
153153
/// # References
154154
/// - [POSIX]
@@ -192,9 +192,9 @@ pub const fn stdout() -> BorrowedFd<'static> {
192192
///
193193
/// # Warning
194194
///
195-
/// This function allows reading directly from stdout without coordinating
195+
/// This function allows writing directly to stdout without coordinating
196196
/// with the buffering performed by [`std::io::Stdout`], so it could cause
197-
/// corrupted input.
197+
/// corrupted output.
198198
///
199199
/// # References
200200
/// - [POSIX]

0 commit comments

Comments
 (0)