Browse Source

writeCommandPacketUint32: fix packet length comment

Julien Schmidt 12 years ago
parent
commit
d8e6c384d4
1 changed files with 1 additions and 1 deletions
  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]
 	// 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[1] = 0x00
 	data[2] = 0x00
 	data[2] = 0x00
 	data[3] = 0x00 // sequence is always 0
 	data[3] = 0x00 // sequence is always 0