strings: Replacer is safe for concurrent use

LGTM=r
R=golang-codereviews, bradfitz, r
CC=golang-codereviews
https://golang.org/cl/109220044
This commit is contained in:
Evan Shaw 2014-06-28 15:53:07 -07:00 committed by Rob Pike
parent 873ceeff54
commit 94935cb5c1
1 changed files with 2 additions and 1 deletions

View 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
}