From 853ab9c1e0977c4f772a8337354001924bbef277 Mon Sep 17 00:00:00 2001 From: Charles Iliya Krempeaux Date: Tue, 13 Feb 2024 08:41:23 -0800 Subject: [PATCH] correction --- string.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/string.go b/string.go index 4fad1fe..b0d4147 100644 --- a/string.go +++ b/string.go @@ -2,7 +2,7 @@ package htmlescape func String(str string) string { var buffer [bufferSize]byte - var p []byte = buffer[0:9] + var p []byte = buffer[0:0] p, _ = AppendString(p, str)