From 31be94755ff54e2560d76329ab494b8a3396b964 Mon Sep 17 00:00:00 2001 From: Marcelo Pires Date: Thu, 6 Sep 2018 16:05:02 +0200 Subject: [PATCH] tidy up documentation --- client.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client.go b/client.go index 78e4d55..8e7d13a 100644 --- a/client.go +++ b/client.go @@ -80,8 +80,8 @@ func (c *Client) Publish(subscription string, data message.Data) (id string, err return c.opts.transport.Publish(subscription, data) } -//OnPublishResponse sets the handler to be triggered if the server replies to the publish request -//according to the spec the server MAY reply to the publish request, so its not guaranteed that this handler will +//OnPublishResponse sets the handler to be triggered if the server replies to the publish request. +//According to the spec the server MAY reply to the publish request, so its not guaranteed that this handler will //ever be triggered. //can be used to identify the status of the published request and for example retry failed published requests. func (c *Client) OnPublishResponse(subscription string, onMsg func(message *message.Message)) {