Skip to content

Commit

Permalink
DecodeMessage: fix formatting of docstring (nsqio#193)
Browse files Browse the repository at this point in the history
  • Loading branch information
dominikh authored and mreiferson committed Sep 29, 2016
1 parent d71fb89 commit 205b510
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions message.go
Original file line number Diff line number Diff line change
Expand Up @@ -140,14 +140,14 @@ func (m *Message) WriteTo(w io.Writer) (int64, error) {

// DecodeMessage deserializes data (as []byte) and creates a new Message
// message format:
// [x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x]...
// | (int64) || || (hex string encoded in ASCII) || (binary)
// | 8-byte || || 16-byte || N-byte
// ------------------------------------------------------------------------------------------...
// nanosecond timestamp ^^ message ID message body
// (uint16)
// 2-byte
// attempts
// [x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x][x]...
// | (int64) || || (hex string encoded in ASCII) || (binary)
// | 8-byte || || 16-byte || N-byte
// ------------------------------------------------------------------------------------------...
// nanosecond timestamp ^^ message ID message body
// (uint16)
// 2-byte
// attempts
func DecodeMessage(b []byte) (*Message, error) {
var msg Message

Expand Down

0 comments on commit 205b510

Please sign in to comment.