diff --git a/README.md b/README.md
index 3487b01..8c91c28 100644
--- a/README.md
+++ b/README.md
@@ -124,7 +124,7 @@ func main() {
 	router := xmpp.NewRouter()
 	router.HandleFunc("message", handleMessage)
 
-	client, err := xmpp.NewClient(config, router, errorHandler)
+	client, err := xmpp.NewClient(&config, router, errorHandler)
 	if err != nil {
 		log.Fatalf("%+v", err)
 	}