~samwhited/xmpp

c71c4f939127ef00d15782bbf965782aeb91756d — Sam Whited 1 year, 7 months ago fcf132e
xmpp: fix handler argument types in docs
1 files changed, 1 insertions(+), 1 deletions(-)

M doc.go
M doc.go => doc.go +1 -1
@@ 102,7 102,7 @@
// stream to the end of the element when the handler returns (even if the
// handler did not consume the entire element).
//
//     err := session.Serve(xmpp.HandlerFunc(func(t xmlstream.TokenReadWriter, start *xml.StartElement) error {
//     err := session.Serve(xmpp.HandlerFunc(func(t xmlstream.TokenReadEncoder, start *xml.StartElement) error {
//         d := xml.NewTokenDecoder(t)
//
//         // Ignore anything that's not a message.