diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/bytes_mut.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index 35e1900..7576299 100644 --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -349,7 +349,7 @@ impl BytesMut { /// /// assert_eq!(other, b"hello world"[..]); /// ``` - #[must_use = "consider BytesMut::advance(len()) if you don't need the other half"] + #[must_use = "consider BytesMut::clear if you don't need the other half"] pub fn split(&mut self) -> BytesMut { let len = self.len(); self.split_to(len) |