From e5054fe7aeab89475b3ef56bdaf8886d8b0d09d2 Mon Sep 17 00:00:00 2001 From: Timofey Koolin Date: Mon, 30 Sep 2024 14:42:31 +0300 Subject: [PATCH] fixed example typo --- topic/topicwriter/topicwriter_test.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/topic/topicwriter/topicwriter_test.go b/topic/topicwriter/topicwriter_test.go index f227dc21c..8e0dc86df 100644 --- a/topic/topicwriter/topicwriter_test.go +++ b/topic/topicwriter/topicwriter_test.go @@ -28,7 +28,7 @@ func ExampleWriter_Write() { topicwriter.Message{Data: strings.NewReader("2")}, topicwriter.Message{Data: strings.NewReader("3")}, ) - if err == nil { + if err != nil { fmt.Println("OK") } else { log.Fatalf("failed write to stream")