1
0
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:
yuyi 2022-06-26 05:04:08 +08:00 committed by GitHub
parent d42aadda0f
commit 546f9a544f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -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

View File

@ -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 {