std.fs.File: fix typo in writeFileAll

This commit is contained in:
Andrew Kelley 2020-09-10 18:53:20 -07:00
parent 800c5de2ae
commit c41cd3e13a

View File

@ -728,7 +728,7 @@ pub const File = struct {
}
var i: usize = 0;
while (i < trailers.len) {
while (amt >= headers[i].iov_len) {
while (amt >= trailers[i].iov_len) {
amt -= trailers[i].iov_len;
i += 1;
if (i >= trailers.len) return;