From 205b5100ce209a3a69fe9423a21c626ed23351e8 Mon Sep 17 00:00:00 2001 From: Dominik Honnef Date: Thu, 29 Sep 2016 18:19:57 +0200 Subject: [PATCH] DecodeMessage: fix formatting of docstring (#193) --- message.go | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/message.go b/message.go index 4779f40c..b496451d 100644 --- a/message.go +++ b/message.go @@ -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