minor grammatical mistake

This commit is contained in:
David Rubin 2025-06-18 13:00:48 -07:00 committed by Alex Rønne Petersen
parent 75d0ec9c04
commit 3034d1e377

View File

@ -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;
});
}