Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 871d222

Browse files
Fix stdin.rs comments to say "read" instead of "write".
This just fixes a few comments that appear to have been copied and pasted from stdout.rs.
1 parent b24fe10 commit 871d222

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

‎src/io/stdin.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ use crate::utils::Context as _;
1616
/// ### Note: Windows Portability Consideration
1717
///
1818
/// When operating in a console, the Windows implementation of this stream does not support
19-
/// non-UTF-8 byte sequences. Attempting to write bytes that are not valid UTF-8 will return
19+
/// non-UTF-8 byte sequences. Attempting to read bytes that are not valid UTF-8 will return
2020
/// an error.
2121
///
2222
/// # Examples
@@ -49,7 +49,7 @@ pub fn stdin() -> Stdin {
4949
/// ### Note: Windows Portability Consideration
5050
///
5151
/// When operating in a console, the Windows implementation of this stream does not support
52-
/// non-UTF-8 byte sequences. Attempting to write bytes that are not valid UTF-8 will return
52+
/// non-UTF-8 byte sequences. Attempting to read bytes that are not valid UTF-8 will return
5353
/// an error.
5454
///
5555
/// [`stdin`]: fn.stdin.html
@@ -79,7 +79,7 @@ struct Inner {
7979
/// The line buffer.
8080
line: String,
8181

82-
/// The write buffer.
82+
/// The read buffer.
8383
buf: Vec<u8>,
8484

8585
/// The result of the last asynchronous operation on the stdin.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /