Skip to content

Commit

Permalink
Remove outdated info on BytesMut::with_capacity (#394)
Browse files Browse the repository at this point in the history
Remove a remark from the doc that pertained to the inline
layout and is no longer true.
  • Loading branch information
mzabaluev authored May 28, 2020
1 parent 64fe7e1 commit a3304e8
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/bytes_mut.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit a3304e8

Please sign in to comment.