aboutsummaryrefslogtreecommitdiff
path: root/src/buf/buf_mut.rs
diff options
context:
space:
mode:
authorGravatar Sean McArthur <sean@seanmonstar.com> 2019-06-06 14:05:16 -0700
committerGravatar Sean McArthur <sean@seanmonstar.com> 2019-06-06 14:08:29 -0700
commit5759211ff81c3601015a0c0dad96f9366965446c (patch)
treef35a46ed391a2dedf99e0e4ff5181a559ffdf50c /src/buf/buf_mut.rs
parent60aceba2bb1dfacbca395832d2f36eabd517fcb1 (diff)
parentd43e283e5ed520e54df2428f2cf9a7c13c79ff49 (diff)
downloadbytes-5759211ff81c3601015a0c0dad96f9366965446c.tar.gz
bytes-5759211ff81c3601015a0c0dad96f9366965446c.tar.zst
bytes-5759211ff81c3601015a0c0dad96f9366965446c.zip
Merge branch 'v0.4.x' into uplift-0.4-commits
Diffstat (limited to 'src/buf/buf_mut.rs')
-rw-r--r--src/buf/buf_mut.rs3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/buf/buf_mut.rs b/src/buf/buf_mut.rs
index 65821d8..29774b9 100644
--- a/src/buf/buf_mut.rs
+++ b/src/buf/buf_mut.rs
@@ -121,7 +121,8 @@ pub trait BufMut {
}
/// Returns a mutable slice starting at the current BufMut position and of
- /// length between 0 and `BufMut::remaining_mut()`.
+ /// length between 0 and `BufMut::remaining_mut()`. Note that this *can* be shorter than the
+ /// whole remainder of the buffer (this allows non-continuous implementation).
///
/// This is a lower level function. Most operations are done with other
/// functions.