1
0
Fork 0

Fix client creation example code in overview docs.

This commit is contained in:
Matt Goodall 2012-07-10 15:11:39 +01:00
parent 5ab3a9be80
commit 38b727ed46
1 changed files with 1 additions and 1 deletions

View File

@ -13,7 +13,7 @@
jid, err := xmpp.ParseJID("alice@wonderland.lit/some-resource")
addr, err := xmpp.HomeServerAddrs(jid)
stream, err := xmpp.NewStream(addr[0])
X, err := xmpp.NewClientXMPP(stream, jid, "password")
X, err := xmpp.NewClientXMPP(stream, jid, "password", nil)
Create a component: