1
Fork 0
mirror of https://github.com/RGBCube/uutils-coreutils synced 2025-08-05 23:47:46 +00:00

Update src/uu/head/src/take.rs

Co-authored-by: Dorian Péron <72708393+RenjiSann@users.noreply.github.com>
This commit is contained in:
karlmcdowall 2025-03-18 09:08:21 -06:00 committed by GitHub
parent 29875312a1
commit e1275f4ccd
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,7 +86,7 @@ impl TakeAllBuffer {
/// Chunks are read until at least we have enough data to write out the entire contents of the
/// first TakeAllBuffer in the queue whilst still retaining at least `n` bytes in the queue.
/// If we hit EoF at any point, stop reading.
/// 2 - Asses whether we managed to queue up greater-than `n` bytes. If not, we must be done, in
/// 2 - Assess whether we managed to queue up greater-than `n` bytes. If not, we must be done, in
/// which case break and return.
/// 3 - Write either the full first buffer of data, or just enough bytes to get back down to having
/// the required `n` bytes of data queued.