Fix lint error

This commit is contained in:
Masaaki Goshima 2021-04-19 18:20:51 +09:00
parent addda3a90e
commit 4e0c525f9c
1 changed files with 1 additions and 1 deletions

View File

@ -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)
}
}
}