Skip to content

Commit

Permalink
Merge pull request #333 from JohnTitor/fix-docs-get-mut
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki Okushi committed Dec 24, 2022
2 parents 76327b1 + cdbbf7e commit 431dc85
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion src/deflate/bufread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,7 +202,7 @@ impl<R> DeflateDecoder<R> {
/// Acquires a mutable reference to the underlying stream
///
/// Note that mutation of the stream may result in surprising results if
/// this encoder is continued to be used.
/// this decoder is continued to be used.
pub fn get_mut(&mut self) -> &mut R {
&mut self.obj
}
Expand Down
2 changes: 1 addition & 1 deletion src/deflate/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -196,7 +196,7 @@ impl<R> DeflateDecoder<R> {
/// Acquires a mutable reference to the underlying stream
///
/// Note that mutation of the stream may result in surprising results if
/// this encoder is continued to be used.
/// this decoder is continued to be used.
pub fn get_mut(&mut self) -> &mut R {
self.inner.get_mut().get_mut()
}
Expand Down
4 changes: 2 additions & 2 deletions src/gz/bufread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -483,7 +483,7 @@ impl<R> GzDecoder<R> {
/// Acquires a mutable reference to the underlying stream.
///
/// Note that mutation of the stream may result in surprising results if
/// this encoder is continued to be used.
/// this decoder is continued to be used.
pub fn get_mut(&mut self) -> &mut R {
self.reader.get_mut().get_mut()
}
Expand Down Expand Up @@ -681,7 +681,7 @@ impl<R> MultiGzDecoder<R> {
/// Acquires a mutable reference to the underlying stream.
///
/// Note that mutation of the stream may result in surprising results if
/// this encoder is continued to be used.
/// this decoder is continued to be used.
pub fn get_mut(&mut self) -> &mut R {
self.0.get_mut()
}
Expand Down
4 changes: 2 additions & 2 deletions src/gz/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -153,7 +153,7 @@ impl<R> GzDecoder<R> {
/// Acquires a mutable reference to the underlying stream.
///
/// Note that mutation of the stream may result in surprising results if
/// this encoder is continued to be used.
/// this decoder is continued to be used.
pub fn get_mut(&mut self) -> &mut R {
self.inner.get_mut().get_mut()
}
Expand Down Expand Up @@ -250,7 +250,7 @@ impl<R> MultiGzDecoder<R> {
/// Acquires a mutable reference to the underlying stream.
///
/// Note that mutation of the stream may result in surprising results if
/// this encoder is continued to be used.
/// this decoder is continued to be used.
pub fn get_mut(&mut self) -> &mut R {
self.inner.get_mut().get_mut()
}
Expand Down
2 changes: 1 addition & 1 deletion src/zlib/bufread.rs
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ impl<R> ZlibDecoder<R> {
/// Acquires a mutable reference to the underlying stream
///
/// Note that mutation of the stream may result in surprising results if
/// this encoder is continued to be used.
/// this decoder is continued to be used.
pub fn get_mut(&mut self) -> &mut R {
&mut self.obj
}
Expand Down
2 changes: 1 addition & 1 deletion src/zlib/read.rs
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,7 @@ impl<R> ZlibDecoder<R> {
/// Acquires a mutable reference to the underlying stream
///
/// Note that mutation of the stream may result in surprising results if
/// this encoder is continued to be used.
/// this decoder is continued to be used.
pub fn get_mut(&mut self) -> &mut R {
self.inner.get_mut().get_mut()
}
Expand Down

0 comments on commit 431dc85

Please sign in to comment.