]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: fix some comments
authorMaxim Pimenov <mpimenov@google.com>
Thu, 17 May 2012 18:19:19 +0000 (11:19 -0700)
committerRob Pike <r@golang.org>
Thu, 17 May 2012 18:19:19 +0000 (11:19 -0700)
R=golang-dev, r
CC=golang-dev
https://golang.org/cl/6217044

src/pkg/go/build/build.go

index ea2990ba942354a869972c0cd7cf33f31fa6e574..dda4a13eb6bcb4010e636f86a470f1f77bbcd3a2 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.
@@ -340,7 +340,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) {