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:
parent
873ceeff54
commit
94935cb5c1
@ -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
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user