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:
Mikhail Zabaluev
2020-05-27 22:02:45 -07:00
committed by GitHub
parent 64fe7e10ab
commit a3304e8b8b
+1 -2
View File
@@ -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.