summaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorPiers <go.dev@hellopiers.io>2023-01-04 16:45:22 +0000
committerGopher Robot <gobot@golang.org>2023-01-04 21:15:31 +0000
commitbae7d772e800207ed764b70a9e5963f0c1e8f0aa (patch)
tree910ff2a04549dffae406a630c9b7bea9687bbd44 /doc
parent4e7c83848332861859d414c833e0b4bd6f375d0b (diff)
downloadgo-git-bae7d772e800207ed764b70a9e5963f0c1e8f0aa.tar.gz
doc/go1.20: fix links to new strings functions
Links under strings package were linking to the bytes versions of the functions. Change-Id: If6ebe37fede8e417f8683695783aa767bc01e9c7 GitHub-Last-Rev: 8849285122cb58c17b5979144649075861d8a134 GitHub-Pull-Request: golang/go#57579 Reviewed-on: https://go-review.googlesource.com/c/go/+/460458 TryBot-Result: Gopher Robot <gobot@golang.org> Run-TryBot: Ian Lance Taylor <iant@google.com> Reviewed-by: Heschi Kreinick <heschi@google.com> Reviewed-by: Ian Lance Taylor <iant@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'doc')
-rw-r--r--doc/go1.20.html8
1 files changed, 4 insertions, 4 deletions
diff --git a/doc/go1.20.html b/doc/go1.20.html
index 6da4f6df23..23fa82c41b 100644
--- a/doc/go1.20.html
+++ b/doc/go1.20.html
@@ -1121,10 +1121,10 @@ proxyHandler := &httputil.ReverseProxy{
<dd>
<p><!-- CL 407176, https://go.dev/issue/42537 -->
The new
- <a href="/pkg/bytes/#CutPrefix"><code>CutPrefix</code></a> and
- <a href="/pkg/bytes/#CutSuffix"><code>CutSuffix</code></a> functions
- are like <a href="/pkg/bytes/#TrimPrefix"><code>TrimPrefix</code></a>
- and <a href="/pkg/bytes/#TrimSuffix"><code>TrimSuffix</code></a>
+ <a href="/pkg/strings/#CutPrefix"><code>CutPrefix</code></a> and
+ <a href="/pkg/strings/#CutSuffix"><code>CutSuffix</code></a> functions
+ are like <a href="/pkg/strings/#TrimPrefix"><code>TrimPrefix</code></a>
+ and <a href="/pkg/strings/#TrimSuffix"><code>TrimSuffix</code></a>
but also report whether the string was trimmed.
</p>