diff options
Diffstat (limited to 'src/check_stmt.cpp')
| -rw-r--r-- | src/check_stmt.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/check_stmt.cpp b/src/check_stmt.cpp index 24960b33c..d68524994 100644 --- a/src/check_stmt.cpp +++ b/src/check_stmt.cpp @@ -1667,7 +1667,7 @@ void check_stmt_internal(CheckerContext *ctx, Ast *node, u32 flags) { GB_ASSERT(ctx->curr_proc_sig != nullptr); if (ctx->in_defer) { - error(rs->token, "You cannot 'return' within a defer statement"); + error(rs->token, "'return' cannot be used within a defer statement"); break; } |