File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -733,10 +733,11 @@ impl BytesMut {
733733
734734 /// Absorbs a `BytesMut` that was previously split off.
735735 ///
736- /// If the two `BytesMut` objects were previously contiguous, i.e., if
737- /// `other` was created by calling `split_off` on this `BytesMut`, then
738- /// this is an `O(1)` operation that just decreases a reference
739- /// count and sets a few indices. Otherwise this method degenerates to
736+ /// If the two `BytesMut` objects were previously contiguous and not mutated
737+ /// in a way that causes re-allocation i.e., if `other` was created by
738+ /// calling `split_off` on this `BytesMut`, then this is an `O(1)` operation
739+ /// that just decreases a reference count and sets a few indices.
740+ /// Otherwise this method degenerates to
740741 /// `self.extend_from_slice(other.as_ref())`.
741742 ///
742743 /// # Examples
You can’t perform that action at this time.
0 commit comments