From 55483454396e5ac858a690726ee4abf55dc4552b Mon Sep 17 00:00:00 2001 From: scruzin Date: Sat, 19 Jan 2019 15:18:10 +1030 Subject: [PATCH] Fix comments munged by /.s/.c search and replaces. --- rtmp/packet.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/rtmp/packet.go b/rtmp/packet.go index 73cc0088..a949cbbc 100644 --- a/rtmp/packet.go +++ b/rtmp/packet.go @@ -270,7 +270,7 @@ func (pkt *packet) resize(size uint32, ht uint8) { // writeTo writes a packet to the RTMP connection. // Packets are written in chunks which are Session.chunkSize in length (128 bytes in length). // We defer sending small audio packets and combine consecutive small audio packets where possible to reduce I/O. -// When queue is true, we expect a response to this request and cache the method on c.methodCallc. +// When queue is true, we expect a response to this request and cache the method on c.methodCalls. func (pkt *packet) writeTo(c *Conn, queue bool) error { if pkt.body == nil || pkt.bodySize == 0 { return errInvalidBody @@ -298,7 +298,7 @@ func (pkt *packet) writeTo(c *Conn, queue bool) error { prevPkt := c.channelsOut[pkt.channel] var last int if prevPkt != nil && pkt.headerType != headerSizeLarge { - // Compress header by using the previous packet's attributec. + // Compress header by using the previous packet's attributes. if prevPkt.bodySize == pkt.bodySize && prevPkt.packetType == pkt.packetType && pkt.headerType == headerSizeMedium { pkt.headerType = headerSizeSmall } @@ -468,7 +468,7 @@ func (pkt *packet) writeTo(c *Conn, queue bool) error { } } - // If we invoked a remote method and queue is true, we queue the method until the result arrivec. + // If we invoked a remote method and queue is true, we queue the method until the result arrives. if pkt.packetType == packetTypeInvoke && queue { buf := pkt.body[1:] meth := amf.DecodeString(buf)