aboutsummaryrefslogtreecommitdiff
path: root/lib/std/os/linux.zig
diff options
context:
space:
mode:
authorLinus Groh <mail@linusgroh.de>2023-04-30 18:02:08 +0100
committerAndrew Kelley <andrew@ziglang.org>2023-04-30 18:16:04 -0700
commit94e30a756edc4c2182168dabd97d481b8aec0ff2 (patch)
tree50d4273d99ddd7a442d62b615cf9dc6128e71fef /lib/std/os/linux.zig
parentec6ffaa1e47388a59035277dafbe3d9999a80fca (diff)
downloadzig-94e30a756edc4c2182168dabd97d481b8aec0ff2.tar.gz
zig-94e30a756edc4c2182168dabd97d481b8aec0ff2.zip
std: fix a bunch of typos
The majority of these are in comments, some in doc comments which might affect the generated documentation, and a few in parameter names - nothing that should be breaking, however.
Diffstat (limited to 'lib/std/os/linux.zig')
-rw-r--r--lib/std/os/linux.zig6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/std/os/linux.zig b/lib/std/os/linux.zig
index 901bb8dbb3..4ffaeb54a4 100644
--- a/lib/std/os/linux.zig
+++ b/lib/std/os/linux.zig
@@ -472,7 +472,7 @@ pub fn preadv(fd: i32, iov: [*]const iovec, count: usize, offset: i64) usize {
@bitCast(usize, @as(isize, fd)),
@ptrToInt(iov),
count,
- // Kernel expects the offset is splitted into largest natural word-size.
+ // Kernel expects the offset is split into largest natural word-size.
// See following link for detail:
// https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git/commit/?id=601cc11d054ae4b5e9b5babec3d8e4667a2cb9b5
@truncate(usize, offset_u),
@@ -3912,7 +3912,7 @@ pub const io_uring_cqe = extern struct {
/// If set, the upper 16 bits are the buffer ID
pub const IORING_CQE_F_BUFFER = 1 << 0;
/// If set, parent SQE will generate more CQE entries.
-/// Avaiable since Linux 5.13.
+/// Available since Linux 5.13.
pub const IORING_CQE_F_MORE = 1 << 1;
/// If set, more data to read after socket recv
pub const IORING_CQE_F_SOCK_NONEMPTY = 1 << 2;
@@ -4234,7 +4234,7 @@ pub const tcp_fastopen_client_fail = enum {
pub const TCPI_OPT_TIMESTAMPS = 1;
pub const TCPI_OPT_SACK = 2;
pub const TCPI_OPT_WSCALE = 4;
-/// ECN was negociated at TCP session init
+/// ECN was negotiated at TCP session init
pub const TCPI_OPT_ECN = 8;
/// we received at least one packet with ECT
pub const TCPI_OPT_ECN_SEEN = 16;