aboutsummaryrefslogtreecommitdiff
path: root/src/check_expr.cpp
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2021-05-15 18:40:06 +0100
committergingerBill <bill@gingerbill.org>2021-05-15 18:40:06 +0100
commit0507b9ebb78e1239501a3153315bd4fd195a88a2 (patch)
tree496efbb18d09fa0be5efceb8ea700d529f877301 /src/check_expr.cpp
parentf7b1290fe930099a1250dbde64cc1c081fbd4828 (diff)
Fix #987
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 18f210b63..8cc5aa894 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -1132,7 +1132,7 @@ Entity *check_ident(CheckerContext *c, Operand *o, Ast *n, Type *named_type, Typ
Entity *e = scope_lookup(c->scope, name);
if (e == nullptr) {
if (is_blank_ident(name)) {
- error(n, "'_' cannot be used as a value type");
+ error(n, "'_' cannot be used as a value");
} else {
error(n, "Undeclared name: %.*s", LIT(name));
}