Skip to content

Commit

Permalink
checker: fix typo explictly -> explicitly in error message (vlang…
Browse files Browse the repository at this point in the history
  • Loading branch information
eltociear authored Jun 19, 2024
1 parent 78b77b9 commit d7cc5c8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion vlib/v/checker/checker.v
Original file line number Diff line number Diff line change
Expand Up @@ -3913,7 +3913,7 @@ fn (mut c Checker) ident(mut node ast.Ident) ast.Type {
c.error('undefined variable `${node.name}`', node.pos)
} else {
c.add_error_detail('use `fn [${node.name}] () {` instead of `fn () {`')
c.error('`${node.name}` must be explictly listed as inherited variable to be used inside a closure',
c.error('`${node.name}` must be explicitly listed as inherited variable to be used inside a closure',
node.pos)
}
return ast.void_type
Expand Down
2 changes: 1 addition & 1 deletion vlib/v/checker/tests/anon_fn_arg_type_err.out
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ vlib/v/checker/tests/anon_fn_arg_type_err.vv:6:14: error: use `_` to name an unu
| ^
7 | return i
8 | }
vlib/v/checker/tests/anon_fn_arg_type_err.vv:7:10: error: `i` must be explictly listed as inherited variable to be used inside a closure
vlib/v/checker/tests/anon_fn_arg_type_err.vv:7:10: error: `i` must be explicitly listed as inherited variable to be used inside a closure
5 |
6 | func := fn (i) int {
7 | return i
Expand Down
2 changes: 1 addition & 1 deletion vlib/v/parser/tests/closure_not_declared.out
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
vlib/v/parser/tests/closure_not_declared.vv:4:9: error: `a` must be explictly listed as inherited variable to be used inside a closure
vlib/v/parser/tests/closure_not_declared.vv:4:9: error: `a` must be explicitly listed as inherited variable to be used inside a closure
2 | a := 1
3 | f := fn () {
4 | print(a)
Expand Down

0 comments on commit d7cc5c8

Please sign in to comment.