Skip to content

Commit a3304e8

Browse files
authored
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.
1 parent 64fe7e1 commit a3304e8

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

src/bytes_mut.rs

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -114,8 +114,7 @@ impl BytesMut {
114114
/// Creates a new `BytesMut` with the specified capacity.
115115
///
116116
/// The returned `BytesMut` will be able to hold at least `capacity` bytes
117-
/// without reallocating. If `capacity` is under `4 * size_of::<usize>() - 1`,
118-
/// then `BytesMut` will not allocate.
117+
/// without reallocating.
119118
///
120119
/// It is important to note that this function does not specify the length
121120
/// of the returned `BytesMut`, but only the capacity.

0 commit comments

Comments
 (0)