From: Tobias Klauser Date: Wed, 31 May 2023 21:35:14 +0000 (+0200) Subject: doc/go1.21: document that os.DirFS implements fs.Read{File,Dir}FS X-Git-Tag: go1.21rc1~146 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=b25dff2efeb8662d6c0e7711bed706a9ffdd6780;p=gostls13.git 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 --- 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. +