docs: clarify the behavior of Buf::chunk (#717)

This commit is contained in:
vvvviiv
2024-07-09 14:13:09 +02:00
committed by GitHub
parent 8cc940779f
commit 3443ca5a0b
2 changed files with 6 additions and 4 deletions
+1 -1
View File
@@ -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