~samwhited/xmpp

b7c0e4d1ab07863ccf190a148a6039b04b8f5325 — Sam Whited 4 years ago e895c0f
Add clarification to docs and minor lint fix
2 files changed, 3 insertions(+), 2 deletions(-)

M jid/doc.go
M jid/escape.go
M jid/doc.go => jid/doc.go +2 -1
@@ 3,7 3,8 @@
// found in the LICENSE file.

// Package jid implements XMPP addresses (historically called "Jabber ID's" or
// "JID's") as described in RFC 7622.
// "JID's") as described in RFC 7622 and transformers for the escaping mechanism
// defined in XEP-0106: JID Escaping.
//
// Be advised: This API is still unstable and is subject to change.
package jid // import "mellium.im/xmpp/jid"

M jid/escape.go => jid/escape.go +1 -1
@@ 91,7 91,7 @@ func (t escapeMapping) Transform(dst, src []byte, atEOF bool) (nDst, nSrc int, e
				"0123456789abcdef"[c&15],
			})
			nDst += n
			nSrc += 1
			nSrc++
			if n != 3 {
				return nDst, nSrc, transform.ErrShortDst
			}