]> Cypherpunks repositories - gostls13.git/commitdiff
regexp: correct doc comment for ReplaceAllLiteralString
authorIan Lance Taylor <iant@golang.org>
Sun, 19 Oct 2014 17:28:27 +0000 (10:28 -0700)
committerIan Lance Taylor <iant@golang.org>
Sun, 19 Oct 2014 17:28:27 +0000 (10:28 -0700)
Fixes #8959.

LGTM=adg
R=golang-codereviews, adg
CC=golang-codereviews
https://golang.org/cl/161790043

src/regexp/regexp.go

index 0b8336a04fbba9be3168ae2762892f4113267b0a..b615acdf0e54f2db8cac515ab41bf81d76cf520d 100644 (file)
@@ -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 {