From a3304e8b8b74e2d5260d8419b6d8075e004e4c39 Mon Sep 17 00:00:00 2001 From: Mikhail Zabaluev Date: Thu, 28 May 2020 08:02:45 +0300 Subject: [PATCH] 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. --- src/bytes_mut.rs | 3 +-- 1 file changed, 1 insertion(+), 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::() - 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.