diff --git a/developing-with-nats/receiving/structure.md b/developing-with-nats/receiving/structure.md index 0f0d873..709f19d 100644 --- a/developing-with-nats/receiving/structure.md +++ b/developing-with-nats/receiving/structure.md @@ -8,13 +8,13 @@ For example, to receive JSON you could do: {% tab title="Go" %} ```go nc, err := nats.Connect("demo.nats.io", - nats.ErrorHandler(func(nc *nats.Conn, s *nats.Subscription, err error) { - if s != nil { - log.Printf("Async error in %q/%q: %v", s.Subject, s.Queue, err) - } else { - log.Printf("Async error outside subscription: %v", err) - } - })) + nats.ErrorHandler(func(nc *nats.Conn, s *nats.Subscription, err error) { + if s != nil { + log.Printf("Async error in %q/%q: %v", s.Subject, s.Queue, err) + } else { + log.Printf("Async error outside subscription: %v", err) + } + })) if err != nil { log.Fatal(err) }