Skip to content

Commit

Permalink
go/build: remove stale reference to ioutil.ReadDir
Browse files Browse the repository at this point in the history
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 <[email protected]>
Run-TryBot: Daniel Martí <[email protected]>
Reviewed-by: Ian Lance Taylor <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
  • Loading branch information
mvdan committed Oct 20, 2022
1 parent 8190876 commit 4b5558e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/go/build/build.go
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 4b5558e

Please sign in to comment.