diff options
| author | Brian Anderson <banderson@mozilla.com> | 2016-03-23 23:39:01 +0000 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2016-03-23 23:39:01 +0000 |
| commit | b013ad55aabf63d5436d127e635928555a6785c9 (patch) | |
| tree | 50eb94c02968af581af85de957c8048d71c7dc28 /src/libstd | |
| parent | 74dfc1ddd9d6a9f541bc526c3401b92bcd16bd2b (diff) | |
| download | rust-b013ad55aabf63d5436d127e635928555a6785c9.tar.gz rust-b013ad55aabf63d5436d127e635928555a6785c9.zip | |
doc: Stdin is locked for reads, not writes
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/stdio.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index e1a388c38c4..c4b573db5f2 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -141,8 +141,8 @@ fn handle_ebadf<T>(r: io::Result<T>, default: T) -> io::Result<T> { /// /// Each handle is a shared reference to a global buffer of input data to this /// process. A handle can be `lock`'d to gain full access to [`BufRead`] methods -/// (e.g. `.lines()`). Writes to this handle are otherwise locked with respect -/// to other writes. +/// (e.g. `.lines()`). Reads to this handle are otherwise locked with respect +/// to other reads. /// /// This handle implements the `Read` trait, but beware that concurrent reads /// of `Stdin` must be executed with care. |
