From 79f2f05be540bc7bde40670593ec4d425816fe95 Mon Sep 17 00:00:00 2001 From: Phil Pennock Date: Thu, 19 Dec 2019 11:57:13 -0500 Subject: [PATCH] Fix for GitBook rendering different tab indents Convert tabs to whitespace assuming tab-stops of 4 not 8. Serves me right for preserving existing style instead of just playing safe. --- developing-with-nats/receiving/structure.md | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) 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) }