From d848bc453bebc744d17d6db7d2545f60be215ca4 Mon Sep 17 00:00:00 2001 From: Dave Collins Date: Sun, 20 Apr 2014 15:01:39 -0500 Subject: [PATCH] Improve comments on new AddUserAgent function. --- msgversion.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/msgversion.go b/msgversion.go index 26382625..f4ca826a 100644 --- a/msgversion.go +++ b/msgversion.go @@ -274,7 +274,9 @@ func validateUserAgent(userAgent string) error { return nil } -// AddUserAgent adds a custom user agent +// AddUserAgent adds a user agent to the user agent string for the version +// message. The version string is not defined to any strict format, although +// it is recommended to use the form "major.minor.revision" e.g. "2.6.41". func (msg *MsgVersion) AddUserAgent(name string, version string, comments ...string) error {