Fix typo on checker
parent
f80876497e
commit
e87289f24d
|
@ -90,7 +90,7 @@ pub fn (mut c Checker) check_files(ast_files []ast.File) {
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
if !has_main_mod_file {
|
if !has_main_mod_file {
|
||||||
c.error('projet must include a `main` module or be a shared library (compile with `v -shared`)',
|
c.error('project must include a `main` module or be a shared library (compile with `v -shared`)',
|
||||||
token.Position{})
|
token.Position{})
|
||||||
} else if !has_main_fn {
|
} else if !has_main_fn {
|
||||||
c.error('function `main` must be declared in the main module', token.Position{})
|
c.error('function `main` must be declared in the main module', token.Position{})
|
||||||
|
|
|
@ -1,3 +1,3 @@
|
||||||
vlib/v/checker/tests/no_main_mod.v:1:1: error: projet must include a `main` module or be a shared library (compile with `v -shared`)
|
vlib/v/checker/tests/no_main_mod.v:1:1: error: project must include a `main` module or be a shared library (compile with `v -shared`)
|
||||||
1 | module a
|
1 | module a
|
||||||
| ^
|
| ^
|
||||||
|
|
Loading…
Reference in New Issue