]> git.lizzy.rs Git - rust.git/commitdiff
doc: Stdin is locked for reads, not writes
authorBrian Anderson <banderson@mozilla.com>
Wed, 23 Mar 2016 23:39:01 +0000 (23:39 +0000)
committerBrian Anderson <banderson@mozilla.com>
Wed, 23 Mar 2016 23:39:01 +0000 (23:39 +0000)
src/libstd/io/stdio.rs

index e1a388c38c45334272b1bbdfbfc61f422ef37af2..c4b573db5f2dd41b44f4179cba30e5680ed88cfe 100644 (file)
@@ -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.