Skip to content

Commit 1d89c3f

Browse files
committed
add runnable example, but try to make it actually runnable
1 parent 626345f commit 1d89c3f

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

example_test.go

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,6 +78,8 @@ func Example() {
7878
foo, ok := msg.Headers["foo"]
7979

8080
fmt.Println("should be true", ok)
81-
fmt.Println("should be bar", foo)
81+
fmt.Println(foo)
82+
// Output:
83+
// bar
8284

8385
}

0 commit comments

Comments
 (0)