]> Cypherpunks repositories - gostls13.git/commitdiff
strings: Replacer is safe for concurrent use
authorEvan Shaw <chickencha@gmail.com>
Sat, 28 Jun 2014 22:53:07 +0000 (15:53 -0700)
committerRob Pike <r@golang.org>
Sat, 28 Jun 2014 22:53:07 +0000 (15:53 -0700)
LGTM=r
R=golang-codereviews, bradfitz, r
CC=golang-codereviews
https://golang.org/cl/109220044

src/pkg/strings/replace.go

index cb9d7b1fa45b62fe9a42c57a4b82cdafef5fa952..d6d742b9423d64e5a531be4c53e3a9a00568f907 100644 (file)
@@ -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
 }