From 70239802c9f98aa2a7bc9bd87046d1b64deceedb Mon Sep 17 00:00:00 2001 From: Noam Preil Date: Tue, 19 May 2020 19:14:36 -0400 Subject: [PATCH] [Stage2/Codegen] Fix a typo --- src-self-hosted/codegen.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src-self-hosted/codegen.zig b/src-self-hosted/codegen.zig index ca029cab8..4e5541b5c 100644 --- a/src-self-hosted/codegen.zig +++ b/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.