Skip to content

Commit dc34e78

Browse files
committed
typos & other doc
1 parent dba7a5b commit dc34e78

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

Diff for: packets.go

+4-4
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ func (mc *mysqlConn) readInitPacket() (err error) {
127127
// status flags [2 bytes]
128128
// capability flags (upper 2 bytes) [2 bytes]
129129
// length of auth-plugin-data [1 byte]
130-
// reserved (all [00]) [10 byte]
130+
// reserved (all [00]) [10 bytes]
131131
pos += 1 + 2 + 2 + 1 + 10
132132

133133
// second part of the password cipher [12? bytes]
@@ -195,7 +195,7 @@ func (mc *mysqlConn) writeAuthPacket() error {
195195
// Charset [1 byte]
196196
data[12] = mc.charset
197197

198-
// Filler [23 byte] (all 0x00)
198+
// Filler [23 bytes] (all 0x00)
199199
pos := 13 + 23
200200

201201
// User [null terminated string]
@@ -304,7 +304,7 @@ func (mc *mysqlConn) readResultOK() error {
304304
case iEOF: // someone is using old_passwords
305305
return errOldPassword
306306

307-
default: // ERROR otherwise
307+
default: // Error otherwise
308308
return mc.handleErrorPacket(data)
309309
}
310310
}
@@ -732,7 +732,7 @@ func (rc *mysqlRows) readBinaryRow(dest []driver.Value) (err error) {
732732
dest[i] = nil
733733
continue
734734

735-
// Numeric Typs
735+
// Numeric Types
736736
case fieldTypeTiny:
737737
if unsigned {
738738
dest[i] = int64(data[pos])

0 commit comments

Comments
 (0)