summaryrefslogtreecommitdiff
path: root/src/regexp/regexp.go
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
commit3c5fd98918e0c1c22566b19769a0a370b1321737 (patch)
treefb4dbdd00ba00eb5f37add377fa31c9fe2dab091 /src/regexp/regexp.go
parent4c91b1371f1aef77e7ea7683c5c1d357234ca1cd (diff)
downloadgo-git-3c5fd98918e0c1c22566b19769a0a370b1321737.tar.gz
regexp: correct doc comment for ReplaceAllLiteralString
Fixes #8959. LGTM=adg R=golang-codereviews, adg CC=golang-codereviews https://golang.org/cl/161790043
Diffstat (limited to 'src/regexp/regexp.go')
-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 0b8336a04f..b615acdf0e 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 {