Fix some case-change bugs I introduced

This commit is contained in:
Neale Pickett 2018-07-24 23:55:46 +00:00
parent d06ca08456
commit e5431843b3
1 changed files with 3 additions and 3 deletions

View File

@ -16,7 +16,7 @@ type ShortError struct {
} }
func (e *ShortError) Error() string { func (e *ShortError) Error() string {
return fmt.Sprintf("Short read: wanted %d of %d available", e.wanted, e.available) return fmt.Sprintf("Short read: wanted %d of %d available", e.Wanted, e.Available)
} }
// Error returned by convenience methods that are unable to operate on gaps in data // Error returned by convenience methods that are unable to operate on gaps in data
@ -83,7 +83,7 @@ func (pkt *Packet) Describe() string {
pkt.Description, pkt.Description,
) )
for _, f := range pkt.Fields { for _, f := range pkt.fields {
fmt.Fprintf(out, " %s: %s\n", f.key, f.value) fmt.Fprintf(out, " %s: %s\n", f.key, f.value)
} }
fmt.Fprint(out, pkt.Payload.Hexdump()) fmt.Fprint(out, pkt.Payload.Hexdump())
@ -183,7 +183,7 @@ func (pkt *Packet) readUint(order binary.ByteOrder, bits int, name string) (inte
case 64: case 64:
value = order.Uint64(b) value = order.Uint64(b)
} }
pkt.AddheaderField(order, name, bits, value) pkt.AddHeaderField(order, name, bits, value)
return value, nil return value, nil
} }