Skip to content

Commit 746a63a

Browse files
authored
Merge pull request #1489 fixed example typo
2 parents 607e86f + e5054fe commit 746a63a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

topic/topicwriter/topicwriter_test.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ func ExampleWriter_Write() {
2828
topicwriter.Message{Data: strings.NewReader("2")},
2929
topicwriter.Message{Data: strings.NewReader("3")},
3030
)
31-
if err == nil {
31+
if err != nil {
3232
fmt.Println("OK")
3333
} else {
3434
log.Fatalf("failed write to stream")

0 commit comments

Comments
 (0)