1
0
mirror of https://github.com/golang/go synced 2024-11-24 05:40:15 -07:00

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

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
}