diff --git a/vlib/v/checker/checker.v b/vlib/v/checker/checker.v index 6b41eb2947..8314eb2e9e 100644 --- a/vlib/v/checker/checker.v +++ b/vlib/v/checker/checker.v @@ -90,7 +90,7 @@ pub fn (mut c Checker) check_files(ast_files []ast.File) { return } 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{}) } else if !has_main_fn { c.error('function `main` must be declared in the main module', token.Position{}) diff --git a/vlib/v/checker/tests/no_main_mod.out b/vlib/v/checker/tests/no_main_mod.out index 35b327469f..211dbd36f4 100644 --- a/vlib/v/checker/tests/no_main_mod.out +++ b/vlib/v/checker/tests/no_main_mod.out @@ -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 | ^