aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-10-09 19:11:26 +0100
committergingerBill <bill@gingerbill.org>2021-10-09 19:11:26 +0100
commit49c761dc6db889301450483ff79842fa192b42a8 (patch)
tree6fc7cba67d4f003c264cccad813ad0c4b36b4c49 /src/check_expr.cpp
parent2a8d4c5bf575bc11ef9c1cbc8f10992e2e0bd0c0 (diff)
Fix typo
Diffstat (limited to 'src/check_expr.cpp')
-rw-r--r--src/check_expr.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_expr.cpp b/src/check_expr.cpp
index 2c44890c2..513144f11 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -6892,7 +6892,7 @@ ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast *node, Type
}
if (c->in_defer) {
- error(rs->token, "'or_return' cannot be used within a defer statement");
+ error(node, "'or_return' cannot be used within a defer statement");
}
return Expr_Expr;