diff options
author | 2024-04-25 10:43:15 +0200 | |
---|---|---|
committer | 2024-04-25 10:43:15 +0200 | |
commit | a8806c245700e583134e67b7e0b87f1256b95bfa (patch) | |
tree | 42780fb00f0ff207785632eab6a2b8346f130700 /src | |
parent | baa5053572ed9e88ca1058ec2b5a3f08046c5a40 (diff) | |
download | bytes-a8806c245700e583134e67b7e0b87f1256b95bfa.tar.gz bytes-a8806c245700e583134e67b7e0b87f1256b95bfa.tar.zst bytes-a8806c245700e583134e67b7e0b87f1256b95bfa.zip |
Improve BytesMut::split suggestion (#699)
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) |