1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

fix base64 test

This commit is contained in:
Alexander Medvednikov
2019-09-28 22:21:48 +03:00
parent 9eac16b976
commit ed93185cb7
2 changed files with 20 additions and 20 deletions

View File

@ -607,7 +607,7 @@ fn (p mut Parser) struct_decl() {
p.error('type names cannot contain `_`')
}
if !p.builtin_mod && !name[0].is_capital() {
p.error('struct names must be capitalized: `struct Foo {`, not `struct foo {`')
p.error('struct names must be capitalized: use `struct ${name.capitalize()}`')
}
if is_interface && !name.ends_with('er') {
p.error('interface names temporarily have to end with `er` (e.g. `Speaker`, `Reader`)')