aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFeoramund <161657516+Feoramund@users.noreply.github.com>2024-09-01 17:50:50 -0400
committerFeoramund <161657516+Feoramund@users.noreply.github.com>2024-09-01 17:50:50 -0400
commit9871ad5fc8c0bd2a3ae63c5446d65dda832385b0 (patch)
tree41380ba9886884e28d1d2f97e578494deee20935
parentdd1f1516960fd0c1882a3b56d11bec88a03c0059 (diff)
Remove extra format item at end of `context` error message
-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 cbfde4f4b..6ab87da09 100644
--- a/src/check_expr.cpp
+++ b/src/check_expr.cpp
@@ -10928,7 +10928,7 @@ gb_internal ExprKind check_expr_base_internal(CheckerContext *c, Operand *o, Ast
case Token_context:
{
if (c->proc_name.len == 0 && c->curr_proc_sig == nullptr) {
- error(node, "'context' is only allowed within procedures %p", c->curr_proc_decl);
+ error(node, "'context' is only allowed within procedures");
return kind;
}
if (unparen_expr(c->assignment_lhs_hint) == node) {