mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
parser: fix a typo in an error message (#14848)
This commit is contained in:
parent
d42aadda0f
commit
546f9a544f
@ -401,7 +401,7 @@ fn (mut p Parser) fn_decl() ast.FnDecl {
|
||||
}
|
||||
if p.tok.kind == .comma {
|
||||
mr_pos := return_type_pos.extend(p.peek_tok.pos())
|
||||
p.error_with_pos('multiple return types in function declaration must use parentheses, .e.g (int, string)',
|
||||
p.error_with_pos('multiple return types in function declaration must use parentheses, e.g. (int, string)',
|
||||
mr_pos)
|
||||
}
|
||||
mut type_sym_method_idx := 0
|
||||
|
@ -1,4 +1,4 @@
|
||||
vlib/v/parser/tests/fn_decl_multi_return_types_err.vv:4:10: error: multiple return types in function declaration must use parentheses, .e.g (int, string)
|
||||
vlib/v/parser/tests/fn_decl_multi_return_types_err.vv:4:10: error: multiple return types in function declaration must use parentheses, e.g. (int, string)
|
||||
2 | }
|
||||
3 |
|
||||
4 | fn foo() int, int {
|
||||
|
Loading…
Reference in New Issue
Block a user