mirror of
https://github.com/ziglang/zig.git
synced 2024-11-16 00:57:04 +00:00
std.fs.File: fix typo in writeFileAll
This commit is contained in:
parent
800c5de2ae
commit
c41cd3e13a
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user