]> Cypherpunks repositories - gostls13.git/commitdiff
[release-branch.go1] go/build: fix some comments
authorMaxim Pimenov <mpimenov@google.com>
Wed, 13 Jun 2012 20:23:59 +0000 (16:23 -0400)
committerRob Pike <r@golang.org>
Wed, 13 Jun 2012 20:23:59 +0000 (16:23 -0400)
««« backport 85e153815747
go/build: fix some comments

R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6217044

»»»

src/pkg/go/build/build.go

index d749aef15130d776a84e9ff5fd6bc57cc2575001..7a81d50303dd71ba8ec6eb2f02ac0f38feeba48b 100644 (file)
@@ -68,7 +68,7 @@ type Context struct {
 
        // ReadDir returns a slice of os.FileInfo, sorted by Name,
        // describing the content of the named directory.
-       // If ReadDir is nil, Import uses io.ReadDir.
+       // If ReadDir is nil, Import uses ioutil.ReadDir.
        ReadDir func(dir string) (fi []os.FileInfo, err error)
 
        // OpenFile opens a file (not a directory) for reading.
@@ -339,7 +339,7 @@ func (e *NoGoError) Error() string {
 //     - files starting with _ or . (likely editor temporary files)
 //     - files with build constraints not satisfied by the context
 //
-// If an error occurs, Import returns a non-nil error also returns a non-nil
+// If an error occurs, Import returns a non-nil error and a non-nil
 // *Package containing partial information.
 //
 func (ctxt *Context) Import(path string, srcDir string, mode ImportMode) (*Package, error) {