Skip to content

Commit

Permalink
Update vlib/v/checker/assign.v
Browse files Browse the repository at this point in the history
Co-authored-by: Delyan Angelov <[email protected]>
  • Loading branch information
felipensp and spytheman authored Dec 17, 2024
1 parent d6dded4 commit 57861c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vlib/v/checker/assign.v
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ fn (mut c Checker) assign_stmt(mut node ast.AssignStmt) {
}
} else if mut left is ast.Ident && node.op == .decl_assign {
if left.name in c.global_names {
c.error('already exists a global variable named `${left.name}`', left.pos)
c.error('the global variable named `${left.name}` already exists', left.pos)
}
}
is_blank_ident := left.is_blank_ident()
Expand Down

0 comments on commit 57861c6

Please sign in to comment.