Skip to content

Commit

Permalink
Merge pull request #1489 fixed example typo
Browse files Browse the repository at this point in the history
  • Loading branch information
rekby authored Sep 30, 2024
2 parents 607e86f + e5054fe commit 746a63a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion topic/topicwriter/topicwriter_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -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")
Expand Down

0 comments on commit 746a63a

Please sign in to comment.