diff options
| author | Sergio Benitez <sb@sergio.bz> | 2017-04-24 16:46:21 -0700 |
|---|---|---|
| committer | Sergio Benitez <sb@sergio.bz> | 2017-04-24 17:12:42 -0700 |
| commit | c168d8bb07392ca6c5e30c2cde1458c9e32bf03b (patch) | |
| tree | a42b8b6a32d12cbd28c0e4388dbc750d26507001 /src/libstd | |
| parent | 76397aea50a506ac177b74d352a0ebbe99d4cdc6 (diff) | |
| download | rust-c168d8bb07392ca6c5e30c2cde1458c9e32bf03b.tar.gz rust-c168d8bb07392ca6c5e30c2cde1458c9e32bf03b.zip | |
Add cautions to io::get_mut method documentation.
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/io/mod.rs | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/io/mod.rs b/src/libstd/io/mod.rs index a30246ae88b..d08ba591de0 100644 --- a/src/libstd/io/mod.rs +++ b/src/libstd/io/mod.rs @@ -1547,6 +1547,10 @@ impl<T, U> Chain<T, U> { /// Gets mutable references to the underlying readers in this `Chain`. /// + /// Care should be taken to avoid modifying the internal I/O state of the + /// underlying readers as doing so may corrupt the internal state of this + /// `Chain`. + /// /// # Examples /// /// ``` @@ -1713,6 +1717,10 @@ impl<T> Take<T> { /// Gets a mutable reference to the underlying reader. /// + /// Care should be taken to avoid modifying the internal I/O state of the + /// underlying reader as doing so may corrupt the internal limit of this + /// `Take`. + /// /// # Examples /// /// ``` |
