Skip to content

Commit a8806c2

Browse files
Improve BytesMut::split suggestion (#699)
1 parent baa5053 commit a8806c2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/bytes_mut.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ impl BytesMut {
349349
///
350350
/// assert_eq!(other, b"hello world"[..]);
351351
/// ```
352-
#[must_use = "consider BytesMut::advance(len()) if you don't need the other half"]
352+
#[must_use = "consider BytesMut::clear if you don't need the other half"]
353353
pub fn split(&mut self) -> BytesMut {
354354
let len = self.len();
355355
self.split_to(len)

0 commit comments

Comments
 (0)