diff --git a/src/Sema.zig b/src/Sema.zig index b0786e6ec8..7348c6fce3 100644 --- a/src/Sema.zig +++ b/src/Sema.zig @@ -11786,7 +11786,7 @@ fn zirSwitchBlock(sema: *Sema, block: *Block, inst: Zir.Inst.Index, operand_is_r return sema.failWithOwnedErrorMsg(block, msg: { const msg = try sema.errMsg(operand_src, "operand of switch loop has comptime-only type '{}'", .{operand_ty.fmt(pt)}); errdefer msg.destroy(gpa); - try sema.errNote(operand_src, msg, "switch loops are evalauted at runtime outside of comptime scopes", .{}); + try sema.errNote(operand_src, msg, "switch loops are evaluated at runtime outside of comptime scopes", .{}); break :msg msg; }); }