Add cautions to io::get_mut method documentation.

This commit is contained in:
Sergio Benitez 2017-04-24 16:46:21 -07:00
parent 76397aea50
commit c168d8bb07
1 changed files with 8 additions and 0 deletions

View File

@ -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
///
/// ```