]> Cypherpunks repositories - gostls13.git/commitdiff
doc/go1.16: fix WalkDir and Walk links
authorTobias Klauser <tklauser@distanz.ch>
Mon, 25 Jan 2021 10:14:57 +0000 (11:14 +0100)
committerTobias Klauser <tobias.klauser@gmail.com>
Mon, 25 Jan 2021 12:30:58 +0000 (12:30 +0000)
Reported by Ben on golang-dev:
https://groups.google.com/g/golang-dev/c/gsoj5Vv15j0/m/XR9CYSRkAgAJ

For #40700.

Change-Id: If4702cf0e9858aaef99c231251dc646a67d1026e
Reviewed-on: https://go-review.googlesource.com/c/go/+/285718
Trust: Tobias Klauser <tobias.klauser@gmail.com>
Reviewed-by: Alberto Donizetti <alb.donizetti@gmail.com>
doc/go1.16.html

index 78f69f6c7d63996a34ca7d50ff1dc56a7e2677f1..9c4910053c3fa7bd569e74c792b6e2d39b27a764 100644 (file)
@@ -895,9 +895,9 @@ func TestFoo(t *testing.T) {
   <dd>
     <p><!-- CL 267887 -->
       The new function
-      <a href="/pkg/path/filepath/WalkDir"><code>WalkDir</code></a>
+      <a href="/pkg/path/filepath/#WalkDir"><code>WalkDir</code></a>
       is similar to
-      <a href="/pkg/path/filepath/Walk"><code>Walk</code></a>,
+      <a href="/pkg/path/filepath/#Walk"><code>Walk</code></a>,
       but is typically more efficient.
       The function passed to <code>WalkDir</code> receives a
       <a href="/pkg/io/fs/#DirEntry"><code>fs.DirEntry</code></a>