aboutsummaryrefslogtreecommitdiff
path: root/src/codegen
diff options
context:
space:
mode:
authorsobolevn <mail@sobolevn.me>2024-07-20 20:23:18 +0300
committersobolevn <mail@sobolevn.me>2024-07-20 20:23:18 +0300
commit4c71d3f29e99d5fc4e69d842457933dc55fc7ac5 (patch)
treecdaf83ab99f822398e48eb19985d47544136db07 /src/codegen
parentef3a746da1a85a8b4a653cb78e0464c71d35b64e (diff)
downloadzig-4c71d3f29e99d5fc4e69d842457933dc55fc7ac5.tar.gz
zig-4c71d3f29e99d5fc4e69d842457933dc55fc7ac5.zip
Fix typos in code comments in `src/`
Diffstat (limited to 'src/codegen')
-rw-r--r--src/codegen/c.zig2
-rw-r--r--src/codegen/llvm.zig2
-rw-r--r--src/codegen/spirv.zig2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/codegen/c.zig b/src/codegen/c.zig
index 9f77e7327c..4dda4d083b 100644
--- a/src/codegen/c.zig
+++ b/src/codegen/c.zig
@@ -1014,7 +1014,7 @@ pub const DeclGen = struct {
try writer.writeAll(", ");
empty = false;
} else {
- // isSignalNan is equivalent to isNan currently, and MSVC doens't have nans, so prefer nan
+ // isSignalNan is equivalent to isNan currently, and MSVC doesn't have nans, so prefer nan
const operation = if (std.math.isNan(f128_val))
"nan"
else if (std.math.isSignalNan(f128_val))
diff --git a/src/codegen/llvm.zig b/src/codegen/llvm.zig
index 13153c9bd5..e4d90cf3f0 100644
--- a/src/codegen/llvm.zig
+++ b/src/codegen/llvm.zig
@@ -855,7 +855,7 @@ pub const Object = struct {
/// table for every zig source field of the struct that has a corresponding
/// LLVM struct field. comptime fields are not included. Zero-bit fields are
/// mapped to a field at the correct byte, which may be a padding field, or
- /// are not mapped, in which case they are sematically at the end of the
+ /// are not mapped, in which case they are semantically at the end of the
/// struct.
/// The value is the LLVM struct field index.
/// This is denormalized data.
diff --git a/src/codegen/spirv.zig b/src/codegen/spirv.zig
index bd14c7a03b..23911c4fbf 100644
--- a/src/codegen/spirv.zig
+++ b/src/codegen/spirv.zig
@@ -3845,7 +3845,7 @@ const DeclGen = struct {
const result = try self.normalize(low_bits, info);
// Now, we need to check the overflow bits AND the sign
- // bit for the expceted overflow bits.
+ // bit for the expected overflow bits.
// To do that, shift out everything bit the sign bit and
// then check what remains.
const shift = Temporary.init(full_result.ty, try self.constInt(full_result.ty, info.bits - 1, .direct));