diff --git a/src/bytes_mut.rs b/src/bytes_mut.rs index 565e91d9b..fe6dbc733 100644 --- a/src/bytes_mut.rs +++ b/src/bytes_mut.rs @@ -551,6 +551,8 @@ impl BytesMut { /// and the original buffer is large enough to fit the requested additional /// capacity, then reallocations will never happen. /// + /// This method does not preserve data stored in the unused capacity. + /// /// # Examples /// /// In the following example, a new buffer is allocated. @@ -797,6 +799,8 @@ impl BytesMut { /// references through other `BytesMut`s or `Bytes` which point to the same underlying /// storage. /// + /// This method does not preserve data stored in the unused capacity. + /// /// # Examples /// /// ```