Skip to content

Commit

Permalink
Remove incorrect guarantee for chunks_vectored (#754)
Browse files Browse the repository at this point in the history
  • Loading branch information
Darksonn authored Jan 10, 2025
1 parent 16cc574 commit 103d7bf
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/buf/buf_impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -164,12 +164,12 @@ pub trait Buf {
/// fetching more than one slice at once. `dst` is a slice of `IoSlice`
/// references, enabling the slice to be directly used with [`writev`]
/// without any further conversion. The sum of the lengths of all the
/// buffers in `dst` will be less than or equal to `Buf::remaining()`.
/// buffers written to `dst` will be less than or equal to `Buf::remaining()`.
///
/// The entries in `dst` will be overwritten, but the data **contained** by
/// the slices **will not** be modified. If `chunk_vectored` does not fill every
/// entry in `dst`, then `dst` is guaranteed to contain all remaining slices
/// in `self.
/// the slices **will not** be modified. The return value is the number of
/// slices written to `dst`. If `Buf::remaining()` is non-zero, then this
/// writes at least one non-empty slice to `dst`.
///
/// This is a lower level function. Most operations are done with other
/// functions.
Expand Down

0 comments on commit 103d7bf

Please sign in to comment.