Commit 70239802c9

Noam Preil <pleasantatk@gmail.com>
2020-05-20 01:14:36
[Stage2/Codegen] Fix a typo
1 parent ed137d2
Changed files (1)
src-self-hosted
src-self-hosted/codegen.zig
@@ -478,7 +478,7 @@ const Function = struct {
                         return self.fail(src, "TODO decide whether to implement non-64-bit loads", .{});
                     }
                     const src_reg = @intToEnum(Reg(arch), @intCast(u8, r));
-                    // This is a varient of 8B /r. Since we're using 64-bit moves, we require a REX.
+                    // This is a variant of 8B /r. Since we're using 64-bit moves, we require a REX.
                     // This is thus three bytes: REX 0x8B R/M.
                     // If the destination is extended, the R field must be 1.
                     // If the *source* is extended, the B field must be 1.