commit d788181a3b96ec653f5bef42916a8129837cdac4 (tree)
parent 06b2fee05eeb4280fd4363a8a8da73f59f977b73
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sat, 1 May 2021 18:07:26 -0400
fix typo
Co-authored-by: Maciej Walczak <14938807+xackus@users.noreply.github.com>
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig
@@ -504,7 +504,7 @@ pub fn pwrite(fd: i32, buf: [*]const u8, count: usize, offset: u64) usize {
);
}
} else {
- // Some architectures (eg. 64bit SPARC) pwrite is called pread64.
+ // Some architectures (eg. 64bit SPARC) pwrite is called pwrite64.
const S = if (!@hasField(SYS, "pwrite") and @hasField(SYS, "pwrite64")) .pwrite64 else .pwrite;
return syscall4(
S,