]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix outdated comments
authorBryan C. Mills <bcmills@google.com>
Mon, 6 Aug 2018 19:42:26 +0000 (15:42 -0400)
committerBryan C. Mills <bcmills@google.com>
Tue, 7 Aug 2018 14:17:02 +0000 (14:17 +0000)
Change-Id: I09532546c96b3758f76528fb5010dafc638139b8
Reviewed-on: https://go-review.googlesource.com/128135
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/internal/modload/import.go
src/cmd/go/internal/modload/load.go

index f0e7d86607f75380890464d4cc6e20a7d2316a69..fc845c297434bf9af5554500b9893776a2f499dd 100644 (file)
@@ -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")
index 9c550445ee3bf9a59f920b62d43fa1f466b7cff6..b151963087a6d6fae97e7842cbdb0023c889d1a8 100644 (file)
@@ -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.