Fix typo in comment.

This commit is contained in:
scruzin 2019-01-12 20:07:56 +10:30
parent 32c281d2dc
commit e0a4c39c8b
1 changed files with 1 additions and 1 deletions

View File

@ -248,7 +248,7 @@ func EncodeNamedNumber(buf []byte, key string, val float64) ([]byte, error) {
return EncodeNumber(buf[len(key):], val)
}
// EncodeNamedNumber encodes a named boolean, where key is the name and val is the booelean value.
// EncodeNamedNumber encodes a named boolean, where key is the name and val is the boolean value.
func EncodeNamedBoolean(buf []byte, key string, val bool) ([]byte, error) {
if 2+len(key) > len(buf) {
return nil, ErrShortBuffer