From 4e0c525f9cbf04058c7bfdc50f49574ddf79054c Mon Sep 17 00:00:00 2001 From: Masaaki Goshima Date: Mon, 19 Apr 2021 18:20:51 +0900 Subject: [PATCH] Fix lint error --- internal/encoder/compact.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/internal/encoder/compact.go b/internal/encoder/compact.go index 25af406..718d1cc 100644 --- a/internal/encoder/compact.go +++ b/internal/encoder/compact.go @@ -84,7 +84,7 @@ func compactValue(dst, src []byte, cursor int64, escape bool) ([]byte, int64, er case 'n': return compactNull(dst, src, cursor) default: - return nil, 0, errors.ErrSyntax(fmt.Sprintf("unexpected character '%s'", src[cursor]), cursor) + return nil, 0, errors.ErrSyntax(fmt.Sprintf("unexpected character '%c'", src[cursor]), cursor) } } }