diff --git a/rtmp/amf/amf.go b/rtmp/amf/amf.go index 1ee86a66..dd09dd18 100644 --- a/rtmp/amf/amf.go +++ b/rtmp/amf/amf.go @@ -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