aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorGravatar Mikhail Zabaluev <mikhail.zabaluev@gmail.com> 2020-05-28 08:02:45 +0300
committerGravatar GitHub <noreply@github.com> 2020-05-27 22:02:45 -0700
commita3304e8b8b74e2d5260d8419b6d8075e004e4c39 (patch)
tree7f16bd3d01747ea0475393a3bf6b18fd97a3e3f4 /src
parent64fe7e10ab849e84f8dd49bb478bc85757713a76 (diff)
downloadbytes-a3304e8b8b74e2d5260d8419b6d8075e004e4c39.tar.gz
bytes-a3304e8b8b74e2d5260d8419b6d8075e004e4c39.tar.zst
bytes-a3304e8b8b74e2d5260d8419b6d8075e004e4c39.zip
Remove outdated info on BytesMut::with_capacity (#394)
Remove a remark from the doc that pertained to the inline layout and is no longer true.
Diffstat (limited to 'src')
-rw-r--r--src/bytes_mut.rs3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs
index 5178198..4d0585e 100644
--- a/src/bytes_mut.rs
+++ b/src/bytes_mut.rs
@@ -114,8 +114,7 @@ impl BytesMut {
/// Creates a new `BytesMut` with the specified capacity.
///
/// The returned `BytesMut` will be able to hold at least `capacity` bytes
- /// without reallocating. If `capacity` is under `4 * size_of::<usize>() - 1`,
- /// then `BytesMut` will not allocate.
+ /// without reallocating.
///
/// It is important to note that this function does not specify the length
/// of the returned `BytesMut`, but only the capacity.