Skip to content

Commit e5054fe

Browse files
committed
fixed example typo
1 parent 607e86f commit e5054fe

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)