diff --git a/vlib/v/checker/assign.v b/vlib/v/checker/assign.v index 1e9cd936d1..06542ed090 100644 --- a/vlib/v/checker/assign.v +++ b/vlib/v/checker/assign.v @@ -356,7 +356,7 @@ fn (mut c Checker) assign_stmt(mut node ast.AssignStmt) { } } if left.mod == left.name && !c.file.path.contains('vlib') { - c.error('duplicate of an module name `${left.name}`', left.pos) + c.error('duplicate of a module name `${left.name}`', left.pos) } // Check if variable name is already registered as imported module symbol if c.check_import_sym_conflict(left.name) { diff --git a/vlib/v/checker/fn.v b/vlib/v/checker/fn.v index 4593de5c44..550fc94b2c 100644 --- a/vlib/v/checker/fn.v +++ b/vlib/v/checker/fn.v @@ -257,7 +257,7 @@ fn (mut c Checker) fn_decl(mut node ast.FnDecl) { } } if node.mod == param.name && !c.file.path.contains('vlib') { - c.error('duplicate of an module name `${param.name}`', param.pos) + c.error('duplicate of a module name `${param.name}`', param.pos) } // Check if parameter name is already registered as imported module symbol if c.check_import_sym_conflict(param.name) { @@ -265,7 +265,7 @@ fn (mut c Checker) fn_decl(mut node ast.FnDecl) { } } if node.mod == node.short_name && !c.file.path.contains('vlib') && node.mod != 'main' { - c.error('duplicate of an module name `${node.short_name}`', node.pos) + c.error('duplicate of a module name `${node.short_name}`', node.pos) } // Check if function name is already registered as imported module symbol if !node.is_method && c.check_import_sym_conflict(node.short_name) {