aboutsummaryrefslogtreecommitdiff
path: root/src/pkg/strings/replace.go
diff options
context:
space:
mode:
authorEvan Shaw <chickencha@gmail.com>2014-06-28 15:53:07 -0700
committerRob Pike <r@golang.org>2014-06-28 15:53:07 -0700
commit94935cb5c1fa5f5e002aa7286f5496a4dad36b5c (patch)
treed5519def4e72eab08df1eff395a7abd84cc86e14 /src/pkg/strings/replace.go
parent873ceeff543b1fc0dddbc354b674819d302f5362 (diff)
downloadgo-94935cb5c1fa5f5e002aa7286f5496a4dad36b5c.tar.xz
strings: Replacer is safe for concurrent use
LGTM=r R=golang-codereviews, bradfitz, r CC=golang-codereviews https://golang.org/cl/109220044
Diffstat (limited to 'src/pkg/strings/replace.go')
-rw-r--r--src/pkg/strings/replace.go3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pkg/strings/replace.go b/src/pkg/strings/replace.go
index cb9d7b1fa4..d6d742b942 100644
--- a/src/pkg/strings/replace.go
+++ b/src/pkg/strings/replace.go
@@ -6,7 +6,8 @@ package strings
import "io"
-// A Replacer replaces a list of strings with replacements.
+// Replacer replaces a list of strings with replacements.
+// It is safe for concurrent use by multiple goroutines.
type Replacer struct {
r replacer
}