Explorar o código

writeCommandPacketUint32: fix packet length comment

Julien Schmidt %!s(int64=12) %!d(string=hai) anos
pai
achega
d8e6c384d4
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      packets.go

+ 1 - 1
packets.go

@@ -409,7 +409,7 @@ func (mc *mysqlConn) writeCommandPacketUint32(command byte, arg uint32) error {
 	}
 
 	// Add the packet header [24bit length + 1 byte sequence]
-	data[0] = 0x05 // 1 bytes long
+	data[0] = 0x05 // 5 bytes long
 	data[1] = 0x00
 	data[2] = 0x00
 	data[3] = 0x00 // sequence is always 0