mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-07 00:00:13 +02:00
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.
This commit is contained in:
+1
-2
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user