Skip to content

Commit c168d8b

Browse files
committed
Add cautions to io::get_mut method documentation.
1 parent 76397ae commit c168d8b

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

src/libstd/io/mod.rs

+8
Original file line numberDiff line numberDiff line change
@@ -1547,6 +1547,10 @@ impl<T, U> Chain<T, U> {
15471547

15481548
/// Gets mutable references to the underlying readers in this `Chain`.
15491549
///
1550+
/// Care should be taken to avoid modifying the internal I/O state of the
1551+
/// underlying readers as doing so may corrupt the internal state of this
1552+
/// `Chain`.
1553+
///
15501554
/// # Examples
15511555
///
15521556
/// ```
@@ -1713,6 +1717,10 @@ impl<T> Take<T> {
17131717

17141718
/// Gets a mutable reference to the underlying reader.
17151719
///
1720+
/// Care should be taken to avoid modifying the internal I/O state of the
1721+
/// underlying reader as doing so may corrupt the internal limit of this
1722+
/// `Take`.
1723+
///
17161724
/// # Examples
17171725
///
17181726
/// ```

0 commit comments

Comments
 (0)