diff options
Diffstat (limited to 'libgo/go/exp/html/escape.go')
-rw-r--r-- | libgo/go/exp/html/escape.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libgo/go/exp/html/escape.go b/libgo/go/exp/html/escape.go index 42be865ef08..8f62a8c2880 100644 --- a/libgo/go/exp/html/escape.go +++ b/libgo/go/exp/html/escape.go @@ -233,8 +233,8 @@ func EscapeString(s string) string { if strings.IndexAny(s, escapedChars) == -1 { return s } - buf := bytes.NewBuffer(nil) - escape(buf, s) + var buf bytes.Buffer + escape(&buf, s) return buf.String() } |