From: Daniel Martí Date: Tue, 4 Oct 2022 14:03:26 +0000 (+0100) Subject: go/build: remove stale reference to ioutil.ReadDir X-Git-Tag: go1.20rc1~585 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=4b5558ef01adc0916729499c3d5ce96b82bedb86;p=gostls13.git go/build: remove stale reference to ioutil.ReadDir 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 Run-TryBot: Daniel Martí Reviewed-by: Ian Lance Taylor TryBot-Result: Gopher Robot --- diff --git a/src/go/build/build.go b/src/go/build/build.go index b583c282c1..4fa07788c9 100644 --- a/src/go/build/build.go +++ b/src/go/build/build.go @@ -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.