diff --git a/go/tools/builders/compilepkg.go b/go/tools/builders/compilepkg.go index 47eca65e9a..6104bb8feb 100644 --- a/go/tools/builders/compilepkg.go +++ b/go/tools/builders/compilepkg.go @@ -405,10 +405,10 @@ func compileArchive( outFactsPath := filepath.Join(workDir, nogoFact) nogoSrcs := make([]string, 0, len(goSrcs)) for _, goSrc := range goSrcs { - // If source is found in the origin map, that means it's likely to be generated source file + // If source is found in the origin map, that means it's likely to be a generated source file // so feed the original source file to static analyzers instead of the generated one. // - // If origin being empty, that means the generated source file has no origin (genrated by rules_go) + // If origin is empty, that means the generated source file is not based on a user-provided source file // thus ignore that entry entirely. if originSrc, ok := nogoSrcsOrigin[goSrc]; ok { if originSrc != "" { diff --git a/tests/core/nogo/coverage/README.rst b/tests/core/nogo/coverage/README.rst index 0f52b7945e..2bb6de952c 100644 --- a/tests/core/nogo/coverage/README.rst +++ b/tests/core/nogo/coverage/README.rst @@ -19,5 +19,5 @@ Verifies `#2146`_. gen_code_test ------------- -Checks how `nogo`_ shoudl not interact with source code that was generated as part of +Checks how `nogo`_ should not run on source code that was generated as part of rules_go's coverage implementation.