Skip to content

Commit

Permalink
Add cautions to io::get_mut method documentation.
Browse files Browse the repository at this point in the history
  • Loading branch information
SergioBenitez committed Apr 25, 2017
1 parent 76397ae commit c168d8b
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/libstd/io/mod.rs
Expand Up @@ -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
///
/// ```
Expand Down Expand Up @@ -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
///
/// ```
Expand Down

0 comments on commit c168d8b

Please sign in to comment.