From 4b5558ef01adc0916729499c3d5ce96b82bedb86 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Daniel=20Mart=C3=AD?= Date: Tue, 4 Oct 2022 15:03:26 +0100 Subject: [PATCH] go/build: remove stale reference to ioutil.ReadDir MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 --- src/go/build/build.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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. -- 2.50.0