mirror of
https://github.com/async-rs/async-std.git
synced 2025-01-16 10:49:55 +00:00
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.
This commit is contained in:
parent
b24fe10b11
commit
871d2220b8
1 changed files with 3 additions and 3 deletions
|
@ -16,7 +16,7 @@ use crate::utils::Context as _;
|
||||||
/// ### Note: Windows Portability Consideration
|
/// ### Note: Windows Portability Consideration
|
||||||
///
|
///
|
||||||
/// When operating in a console, the Windows implementation of this stream does not support
|
/// When operating in a console, the Windows implementation of this stream does not support
|
||||||
/// non-UTF-8 byte sequences. Attempting to write bytes that are not valid UTF-8 will return
|
/// non-UTF-8 byte sequences. Attempting to read bytes that are not valid UTF-8 will return
|
||||||
/// an error.
|
/// an error.
|
||||||
///
|
///
|
||||||
/// # Examples
|
/// # Examples
|
||||||
|
@ -49,7 +49,7 @@ pub fn stdin() -> Stdin {
|
||||||
/// ### Note: Windows Portability Consideration
|
/// ### Note: Windows Portability Consideration
|
||||||
///
|
///
|
||||||
/// When operating in a console, the Windows implementation of this stream does not support
|
/// When operating in a console, the Windows implementation of this stream does not support
|
||||||
/// non-UTF-8 byte sequences. Attempting to write bytes that are not valid UTF-8 will return
|
/// non-UTF-8 byte sequences. Attempting to read bytes that are not valid UTF-8 will return
|
||||||
/// an error.
|
/// an error.
|
||||||
///
|
///
|
||||||
/// [`stdin`]: fn.stdin.html
|
/// [`stdin`]: fn.stdin.html
|
||||||
|
@ -79,7 +79,7 @@ struct Inner {
|
||||||
/// The line buffer.
|
/// The line buffer.
|
||||||
line: String,
|
line: String,
|
||||||
|
|
||||||
/// The write buffer.
|
/// The read buffer.
|
||||||
buf: Vec<u8>,
|
buf: Vec<u8>,
|
||||||
|
|
||||||
/// The result of the last asynchronous operation on the stdin.
|
/// The result of the last asynchronous operation on the stdin.
|
||||||
|
|
Loading…
Reference in a new issue