mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-24 00:00:14 +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.
|
/// Creates a new `BytesMut` with the specified capacity.
|
||||||
///
|
///
|
||||||
/// The returned `BytesMut` will be able to hold at least `capacity` bytes
|
/// The returned `BytesMut` will be able to hold at least `capacity` bytes
|
||||||
/// without reallocating. If `capacity` is under `4 * size_of::<usize>() - 1`,
|
/// without reallocating.
|
||||||
/// then `BytesMut` will not allocate.
|
|
||||||
///
|
///
|
||||||
/// It is important to note that this function does not specify the length
|
/// It is important to note that this function does not specify the length
|
||||||
/// of the returned `BytesMut`, but only the capacity.
|
/// of the returned `BytesMut`, but only the capacity.
|
||||||
|
|||||||
Reference in New Issue
Block a user