go/src/io
Matthew Burton ad0434200c fs: clarify documentation for ReadDir method
The fs.ReadDir method behaves the same way as
os.ReadDir, in that when n <= 0, ReadDir returns
all DirEntry values remaining in the dictionary.

Update the comment to reflect that only remaining
DirEntry values are returned (not all entries),
for subsequent calls.

Fixes #69301

Change-Id: I41ef7ef1c8e3fe7d64586f5297512697dc60dd40
Reviewed-on: https://go-review.googlesource.com/c/go/+/663215
Reviewed-by: Keith Randall <khr@google.com>
Reviewed-by: Sean Liao <sean@liao.dev>
Auto-Submit: Sean Liao <sean@liao.dev>
Reviewed-by: Jorropo <jorropo.pgm@gmail.com>
Reviewed-by: David Chase <drchase@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
2025-04-19 16:07:50 -07:00
..
fs fs: clarify documentation for ReadDir method 2025-04-19 16:07:50 -07:00
ioutil std: add //go:fix inline directives to some deprecated functions 2025-02-15 08:06:58 -08:00
example_test.go
export_test.go
io.go io: fix typo inside copyBuffer 2024-04-15 17:34:10 +00:00
io_test.go io: simplify tests by removing redundant statements 2024-11-05 19:52:23 +00:00
multi.go
multi_test.go io: use runtime.AddCleanup instead of runtime.SetFinalizer 2025-02-13 09:11:02 -08:00
pipe.go io: add available godoc link 2023-10-18 19:34:35 +00:00
pipe_test.go io: add test for Pipe constructor allocations 2024-07-07 19:43:22 +00:00