diff options
Diffstat (limited to 'src/pkg/regexp/regexp.go')
| -rw-r--r-- | src/pkg/regexp/regexp.go | 2 | 
1 files changed, 1 insertions, 1 deletions
| diff --git a/src/pkg/regexp/regexp.go b/src/pkg/regexp/regexp.go index 1559da23e..f754418ec 100644 --- a/src/pkg/regexp/regexp.go +++ b/src/pkg/regexp/regexp.go @@ -883,7 +883,7 @@ func (re *Regexp) ReplaceAllString(src, repl string) string {  	// Copy the unmatched characters after the last match.  	io.WriteString(buf, src[lastMatchEnd:len(src)]); -	return string(buf.Bytes()); +	return buf.String();  }  // ReplaceAll returns a copy of src in which all matches for the Regexp | 
