From b013ad55aabf63d5436d127e635928555a6785c9 Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Wed, 23 Mar 2016 23:39:01 +0000 Subject: [PATCH] doc: Stdin is locked for reads, not writes --- src/libstd/io/stdio.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/libstd/io/stdio.rs b/src/libstd/io/stdio.rs index e1a388c38c453..c4b573db5f2dd 100644 --- a/src/libstd/io/stdio.rs +++ b/src/libstd/io/stdio.rs @@ -141,8 +141,8 @@ fn handle_ebadf(r: io::Result, default: T) -> io::Result { /// /// 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.