mirror of
https://github.com/tokio-rs/bytes.git
synced 2026-08-14 00:00:13 +02:00
docs: clarify the behavior of Buf::chunk (#717)
This commit is contained in:
+1
-1
@@ -165,7 +165,7 @@ pub unsafe trait BufMut {
|
||||
///
|
||||
/// # Implementer notes
|
||||
///
|
||||
/// This function should never panic. `chunk_mut` should return an empty
|
||||
/// This function should never panic. `chunk_mut()` should return an empty
|
||||
/// slice **if and only if** `remaining_mut()` returns 0. In other words,
|
||||
/// `chunk_mut()` returning an empty slice implies that `remaining_mut()` will
|
||||
/// return 0 and `remaining_mut()` returning 0 implies that `chunk_mut()` will
|
||||
|
||||
Reference in New Issue
Block a user