Skip to content

Commit

Permalink
Add a missing format argument (#164)
Browse files Browse the repository at this point in the history
This was caught by go vet.
  • Loading branch information
zenhack authored and lthibault committed Feb 22, 2021
1 parent 279d335 commit 3073112
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion message.go
Original file line number Diff line number Diff line change
Expand Up @@ -834,7 +834,7 @@ func (m *Message) Marshal() ([]byte, error) {
}
if len(s.data)%int(wordSize) != 0 {
m.mu.Unlock()
return nil, errorf("marshal: segment %d not word-aligned")
return nil, errorf("marshal: segment %d not word-aligned", i)
}
binary.LittleEndian.PutUint32(buf[int(i+1)*4:], uint32(len(s.data)/int(wordSize)))
buf = append(buf, s.data...)
Expand Down

0 comments on commit 3073112

Please sign in to comment.