]> Cypherpunks repositories - gostls13.git/commitdiff
go/build: remove stale reference to ioutil.ReadDir
authorDaniel Martí <mvdan@mvdan.cc>
Tue, 4 Oct 2022 14:03:26 +0000 (15:03 +0100)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 20 Oct 2022 14:18:30 +0000 (14:18 +0000)
The package moved away from the deprecated ioutil API some time ago.

Change-Id: Iecb1baa9285af1f721a04eb40f8dafdd72474c4d
Reviewed-on: https://go-review.googlesource.com/c/go/+/438515
Reviewed-by: Bryan Mills <bcmills@google.com>
Run-TryBot: Daniel Martí <mvdan@mvdan.cc>
Reviewed-by: Ian Lance Taylor <iant@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>

src/go/build/build.go

index b583c282c1e7231dd7bfe1b5af59382182537b9b..4fa07788c9c5182742f61bc71ccccc186b60ad75 100644 (file)
@@ -103,7 +103,7 @@ type Context struct {
 
        // ReadDir returns a slice of fs.FileInfo, sorted by Name,
        // describing the content of the named directory.
-       // If ReadDir is nil, Import uses ioutil.ReadDir.
+       // If ReadDir is nil, Import uses os.ReadDir.
        ReadDir func(dir string) ([]fs.FileInfo, error)
 
        // OpenFile opens a file (not a directory) for reading.