From b25dff2efeb8662d6c0e7711bed706a9ffdd6780 Mon Sep 17 00:00:00 2001 From: Tobias Klauser Date: Wed, 31 May 2023 23:35:14 +0200 Subject: [PATCH] doc/go1.21: document that os.DirFS implements fs.Read{File,Dir}FS Also add a missing in the preceding section. For #53761 Change-Id: I8e64b86b5b32067f954d58cf9adf86cb4d2eeb2b Reviewed-on: https://go-review.googlesource.com/c/go/+/499735 Run-TryBot: Tobias Klauser Auto-Submit: Tobias Klauser Auto-Submit: Eli Bendersky TryBot-Result: Gopher Robot Reviewed-by: Ian Lance Taylor Reviewed-by: Eli Bendersky --- doc/go1.21.html | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/doc/go1.21.html b/doc/go1.21.html index 9a159e747d..970ff47394 100644 --- a/doc/go1.21.html +++ b/doc/go1.21.html @@ -771,10 +771,19 @@ Do not send CLs removing the interior tags from such phrases. io/fs.DirEntry interface returned by the ReadDir function and - the File.ReadDir + the File.ReadDir method now implements a String method that calls io/fs.FormatDirEntry.

+ +

+ The implementation of the + io/fs.FS interface returned by + the DirFS function now implements + the io/fs.ReadFileFS and + the ios/fs.ReadDirFS + interfaces. +

-- 2.50.0