]> Cypherpunks repositories - gostls13.git/commitdiff
cmd/go: fix typo in findInternal documentation
authorWisdom Omuya <deafgoat@gmail.com>
Sat, 9 Apr 2016 23:23:01 +0000 (19:23 -0400)
committerBrad Fitzpatrick <bradfitz@golang.org>
Sun, 10 Apr 2016 00:35:10 +0000 (00:35 +0000)
Fixes #15217

Change-Id: Ib8f7af714197fd209e743f61f28a5b07c04a7f5c
Reviewed-on: https://go-review.googlesource.com/21793
Reviewed-by: Brad Fitzpatrick <bradfitz@golang.org>
src/cmd/go/pkg.go

index 9b0c6572369116777dfcb6d519713e0cbfec2d4d..f330b4db4360e16b8b10fbc1c6f7642c77e121e7 100644 (file)
@@ -523,7 +523,7 @@ func disallowInternal(srcDir string, p *Package, stk *importStack) *Package {
                return p
        }
 
-       // Check for "internal" element: four cases depending on begin of string and/or end of string.
+       // Check for "internal" element: three cases depending on begin of string and/or end of string.
        i, ok := findInternal(p.ImportPath)
        if !ok {
                return p
@@ -560,7 +560,7 @@ func disallowInternal(srcDir string, p *Package, stk *importStack) *Package {
 // If there isn't one, findInternal returns ok=false.
 // Otherwise, findInternal returns ok=true and the index of the "internal".
 func findInternal(path string) (index int, ok bool) {
-       // Four cases, depending on internal at start/end of string or not.
+       // Three cases, depending on internal at start/end of string or not.
        // The order matters: we must return the index of the final element,
        // because the final one produces the most restrictive requirement
        // on the importer.