From: Evan Shaw Date: Sat, 28 Jun 2014 22:53:07 +0000 (-0700) Subject: strings: Replacer is safe for concurrent use X-Git-Tag: go1.4beta1~1201 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=94935cb5c1fa5f5e002aa7286f5496a4dad36b5c;p=gostls13.git strings: Replacer is safe for concurrent use LGTM=r R=golang-codereviews, bradfitz, r CC=golang-codereviews https://golang.org/cl/109220044 --- 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 }