aboutsummaryrefslogtreecommitdiff
path: root/src/strings/replace.go
diff options
context:
space:
mode:
authorcui fliter <imcusg@gmail.com>2023-10-12 11:49:26 +0800
committerGopher Robot <gobot@golang.org>2023-10-13 17:10:31 +0000
commit6dd7462a04e2ce0a3e91cdb8fd85e98ac62ba0aa (patch)
tree40cf538d58215087be49a085f550cae7472a817c /src/strings/replace.go
parenta0da9c00aeb51261b9845a46fbc9878870884ab6 (diff)
downloadgo-6dd7462a04e2ce0a3e91cdb8fd85e98ac62ba0aa.tar.xz
bytes,strings: add available godoc link
Change-Id: Id9706a783d3321e3706eeee102286522e7968efd Reviewed-on: https://go-review.googlesource.com/c/go/+/534775 Reviewed-by: Ian Lance Taylor <iant@google.com> LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Ian Lance Taylor <iant@google.com>
Diffstat (limited to 'src/strings/replace.go')
-rw-r--r--src/strings/replace.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/strings/replace.go b/src/strings/replace.go
index f504fb48df..3b17a55b91 100644
--- a/src/strings/replace.go
+++ b/src/strings/replace.go
@@ -23,7 +23,7 @@ type replacer interface {
WriteString(w io.Writer, s string) (n int, err error)
}
-// NewReplacer returns a new Replacer from a list of old, new string
+// NewReplacer returns a new [Replacer] from a list of old, new string
// pairs. Replacements are performed in the order they appear in the
// target string, without overlapping matches. The old string
// comparisons are done in argument order.