doc: Stdin is locked for reads, not writes
This commit is contained in:
parent
74dfc1ddd9
commit
b013ad55aa
@ -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
|
/// 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
|
/// 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
|
/// (e.g. `.lines()`). Reads to this handle are otherwise locked with respect
|
||||||
/// to other writes.
|
/// to other reads.
|
||||||
///
|
///
|
||||||
/// This handle implements the `Read` trait, but beware that concurrent reads
|
/// This handle implements the `Read` trait, but beware that concurrent reads
|
||||||
/// of `Stdin` must be executed with care.
|
/// of `Stdin` must be executed with care.
|
||||||
|
Loading…
Reference in New Issue
Block a user