summaryrefslogtreecommitdiff
path: root/vendor/codeberg.org/gruf/go-kv/v2/util.go
diff options
context:
space:
mode:
Diffstat (limited to 'vendor/codeberg.org/gruf/go-kv/v2/util.go')
-rw-r--r--vendor/codeberg.org/gruf/go-kv/v2/util.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/vendor/codeberg.org/gruf/go-kv/v2/util.go b/vendor/codeberg.org/gruf/go-kv/v2/util.go
index 90fba59de..5939ce844 100644
--- a/vendor/codeberg.org/gruf/go-kv/v2/util.go
+++ b/vendor/codeberg.org/gruf/go-kv/v2/util.go
@@ -17,8 +17,8 @@ func AppendQuoteString(buf *byteutil.Buffer, str string) {
return
case len(str) == 1:
- // Append escaped single byte.
- buf.B = format.AppendEscapeByte(buf.B, str[0])
+ // Append quoted escaped single byte.
+ buf.B = format.AppendQuoteByte(buf.B, str[0])
return
case len(str) > format.SingleTermLine || !format.IsSafeASCII(str):
@@ -62,7 +62,7 @@ func AppendQuoteValue(buf *byteutil.Buffer, str string) {
return
case len(str) == 1:
- // Append quoted single byte.
+ // Append quoted escaped single byte.
buf.B = format.AppendQuoteByte(buf.B, str[0])
return