sema: fix typo

This commit is contained in:
Jacob Young 2022-09-20 13:51:11 -04:00 committed by Joachim Schmidt
parent 85e3204344
commit 14f4c73191
2 changed files with 2 additions and 2 deletions

View File

@ -20577,7 +20577,7 @@ fn requireFunctionBlock(sema: *Sema, block: *Block, src: LazySrcLoc) !void {
fn requireRuntimeBlock(sema: *Sema, block: *Block, src: LazySrcLoc, runtime_src: ?LazySrcLoc) !void {
if (block.is_comptime) {
const msg = msg: {
const msg = try sema.errMsg(block, src, "unable to evalutate comptime expression", .{});
const msg = try sema.errMsg(block, src, "unable to evaluate comptime expression", .{});
errdefer msg.destroy(sema.gpa);
if (runtime_src) |some| {

View File

@ -14,5 +14,5 @@ fn doSomeAsm() void {
// backend=llvm
// target=native
//
// :6:5: error: unable to evalutate comptime expression
// :6:5: error: unable to evaluate comptime expression
// :2:14: note: called from here