We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent baa5053 commit a8806c2Copy full SHA for a8806c2
src/bytes_mut.rs
@@ -349,7 +349,7 @@ impl BytesMut {
349
///
350
/// assert_eq!(other, b"hello world"[..]);
351
/// ```
352
- #[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"]
353
pub fn split(&mut self) -> BytesMut {
354
let len = self.len();
355
self.split_to(len)
0 commit comments