Skip to content

Commit

Permalink
Fix typos regarding stdout safety (#993)
Browse files Browse the repository at this point in the history
  • Loading branch information
SUPERCILEX authored Jan 16, 2024
1 parent aecc981 commit 3e3cf73
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/stdio.rs
Original file line number Diff line number Diff line change
Expand Up @@ -146,9 +146,9 @@ pub unsafe fn take_stdin() -> OwnedFd {
///
/// # Warning
///
/// This function allows reading directly from stdout without coordinating
/// This function allows writing directly to stdout without coordinating
/// with the buffering performed by [`std::io::Stdout`], so it could cause
/// corrupted input.
/// corrupted output.
///
/// # References
/// - [POSIX]
Expand Down Expand Up @@ -192,9 +192,9 @@ pub const fn stdout() -> BorrowedFd<'static> {
///
/// # Warning
///
/// This function allows reading directly from stdout without coordinating
/// This function allows writing directly to stdout without coordinating
/// with the buffering performed by [`std::io::Stdout`], so it could cause
/// corrupted input.
/// corrupted output.
///
/// # References
/// - [POSIX]
Expand Down

0 comments on commit 3e3cf73

Please sign in to comment.