mirror of
https://github.com/ziglang/zig.git
synced 2026-02-21 16:54:52 +00:00
minor grammatical mistake
This commit is contained in:
parent
75d0ec9c04
commit
3034d1e377
@ -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;
|
||||
});
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user