summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorIan Lance Taylor <iant@golang.org>2014-10-19 10:28:27 -0700
committerIan Lance Taylor <iant@golang.org>2014-10-19 10:28:27 -0700
commitf529378d4e294b023d1f27f2066ba9d0a3686e19 (patch)
treec2292ba9573180e5128ac542458c141d748f04d9
parente4ae17b8fb2bd931cfb3ea6a6ca9c937916efaca (diff)
downloadgo-f529378d4e294b023d1f27f2066ba9d0a3686e19.tar.gz
regexp: correct doc comment for ReplaceAllLiteralString
Fixes issue 8959. LGTM=adg R=golang-codereviews, adg CC=golang-codereviews https://codereview.appspot.com/161790043
-rw-r--r--src/regexp/regexp.go2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/regexp/regexp.go b/src/regexp/regexp.go
index 0b8336a04..b615acdf0 100644
--- a/src/regexp/regexp.go
+++ b/src/regexp/regexp.go
@@ -452,7 +452,7 @@ func (re *Regexp) ReplaceAllString(src, repl string) string {
return string(b)
}
-// ReplaceAllStringLiteral returns a copy of src, replacing matches of the Regexp
+// ReplaceAllLiteralString returns a copy of src, replacing matches of the Regexp
// with the replacement string repl. The replacement repl is substituted directly,
// without using Expand.
func (re *Regexp) ReplaceAllLiteralString(src, repl string) string {