From 94935cb5c1fa5f5e002aa7286f5496a4dad36b5c Mon Sep 17 00:00:00 2001 From: Evan Shaw Date: Sat, 28 Jun 2014 15:53:07 -0700 Subject: [PATCH] strings: Replacer is safe for concurrent use LGTM=r R=golang-codereviews, bradfitz, r CC=golang-codereviews https://golang.org/cl/109220044 --- src/pkg/strings/replace.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/pkg/strings/replace.go b/src/pkg/strings/replace.go index cb9d7b1fa45..d6d742b9423 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 }