From 6da0c781782a44385ff61cc155abb2f4012c7a8e Mon Sep 17 00:00:00 2001 From: Peter Nguyen Date: Wed, 23 Dec 2020 11:22:54 +0100 Subject: [PATCH] Fix typo in documentation for example of connecting to NATS streaming --- developing-with-nats-streaming/connecting.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/developing-with-nats-streaming/connecting.md b/developing-with-nats-streaming/connecting.md index d8f460c..638ce03 100644 --- a/developing-with-nats-streaming/connecting.md +++ b/developing-with-nats-streaming/connecting.md @@ -17,7 +17,7 @@ sc, err := stan.Connect(clusterID, clientID) If the server runs on port `1234`: ```go -sc, err := stan.Connect(clusterID, clientID, stan.NatsURL(“nats://localhost:1234)) +sc, err := stan.Connect(clusterID, clientID, stan.NatsURL("nats://localhost:1234")) ``` Sometimes you may want to provide NATS settings that aren't available in the streaming libraries connect method. Or, you may want to reuse a NATS connection instead of creating a new one. In this case the libraries generally provide a way to connect to streaming with an existing NATS connection: