diff --git a/packet.go b/packet.go
index 7a6b3fb1823630cefb751d36d55ad0d65921ced2..98ce426513951ea7727d233c0f0ec7b20c3a08da 100644
--- a/packet.go
+++ b/packet.go
@@ -54,7 +54,7 @@ func (e InvalidPacketLengthError) Error() string {
 	return fmt.Sprintf("packet: Invalid packet length: %d", int(e))
 }
 
-// InvalidPacketLengthError is the error returned when decodePacket rejects the
+// InvalidPayloadLengthError is the error returned when decodePacket rejects the
 // payload length.
 type InvalidPayloadLengthError int