diff options
Diffstat (limited to 'src/buf/ext/reader.rs')
-rw-r--r-- | src/buf/ext/reader.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/buf/ext/reader.rs b/src/buf/ext/reader.rs index e38103b..dde3548 100644 --- a/src/buf/ext/reader.rs +++ b/src/buf/ext/reader.rs @@ -1,4 +1,4 @@ -use crate::{Buf}; +use crate::Buf; use std::{cmp, io}; @@ -26,7 +26,7 @@ impl<B: Buf> Reader<B> { /// ```rust /// use bytes::buf::BufExt; /// - /// let mut buf = b"hello world".reader(); + /// let buf = b"hello world".reader(); /// /// assert_eq!(b"hello world", buf.get_ref()); /// ``` |