]> Cypherpunks.ru repositories - gostls13.git/commitdiff
doc/go1.21: document that os.DirFS implements fs.Read{File,Dir}FS
authorTobias Klauser <tklauser@distanz.ch>
Wed, 31 May 2023 21:35:14 +0000 (23:35 +0200)
committerGopher Robot <gobot@golang.org>
Thu, 1 Jun 2023 12:43:18 +0000 (12:43 +0000)
Also add a missing </a> in the preceding section.

For #53761

Change-Id: I8e64b86b5b32067f954d58cf9adf86cb4d2eeb2b
Reviewed-on: https://go-review.googlesource.com/c/go/+/499735
Run-TryBot: Tobias Klauser <tobias.klauser@gmail.com>
Auto-Submit: Tobias Klauser <tobias.klauser@gmail.com>
Auto-Submit: Eli Bendersky <eliben@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Ian Lance Taylor <iant@google.com>
Reviewed-by: Eli Bendersky <eliben@google.com>
doc/go1.21.html

index 9a159e747dd190e5ad5d16369b023f2e5126a139..970ff47394b7de2b40ada6043bee7b35f557ca51 100644 (file)
@@ -771,10 +771,19 @@ Do not send CLs removing the interior tags from such phrases.
       <a href="/pkg/io/fs/#DirEntry"><code>io/fs.DirEntry</code></a>
       interface returned by the
       <a href="/pkg/os/#ReadDir"><code>ReadDir</code></a> function and
-      the <a href="/pkg/os/#File.ReadDir"><code>File.ReadDir</code>
+      the <a href="/pkg/os/#File.ReadDir"><code>File.ReadDir</code></a>
       method now implements a <code>String</code> method that calls
       <a href="/pkg/io/fs/#FormatDirEntry"><code>io/fs.FormatDirEntry</code></a>.
     </p>
+
+    <p><!-- https://go.dev/issue/53761, CL 416775, CL 498015-->
+    The implementation of the
+    <a href="/pkg/io/fs/#FS"><code>io/fs.FS</code></a> interface returned by
+    the <a href="/pkg/os/#DirFS"><code>DirFS</code></a> function now implements
+    the <a href="/pkg/io/fs/#ReadFileFS"><code>io/fs.ReadFileFS</code></a> and
+    the <a href="/pkg/io/fs/#ReadDirFS"><code></code>ios/fs.ReadDirFS</a>
+    interfaces.
+    </p>
   </dd>
 </dl><!-- os -->