From: Bryan C. Mills Date: Mon, 6 Aug 2018 19:42:26 +0000 (-0400) Subject: cmd/go: fix outdated comments X-Git-Tag: go1.11rc1~43 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=d8935731553800e22b5b071414782b2738f87fb0;p=gostls13.git cmd/go: fix outdated comments Change-Id: I09532546c96b3758f76528fb5010dafc638139b8 Reviewed-on: https://go-review.googlesource.com/128135 Reviewed-by: Brad Fitzpatrick --- diff --git a/src/cmd/go/internal/modload/import.go b/src/cmd/go/internal/modload/import.go index f0e7d86607..fc845c2974 100644 --- a/src/cmd/go/internal/modload/import.go +++ b/src/cmd/go/internal/modload/import.go @@ -42,7 +42,7 @@ func (e *ImportMissingError) Error() string { // If the package cannot be found in the current build list, // Import returns an ImportMissingError as the error. // If Import can identify a module that could be added to supply the package, -// the ImportMissingErr records that module. +// the ImportMissingError records that module. func Import(path string) (m module.Version, dir string, err error) { if strings.Contains(path, "@") { return module.Version{}, "", fmt.Errorf("import path should not have @version") diff --git a/src/cmd/go/internal/modload/load.go b/src/cmd/go/internal/modload/load.go index 9c550445ee..b151963087 100644 --- a/src/cmd/go/internal/modload/load.go +++ b/src/cmd/go/internal/modload/load.go @@ -504,9 +504,6 @@ func (ld *loader) load(roots func() []string) { } } } - - // Check for visibility violations. - // TODO! } // pkg returns the *loadPkg for path, creating and queuing it if needed.