Skip to content

Commit

Permalink
Correct Fprintf format verb
Browse files Browse the repository at this point in the history
Go-tip is failing because it looks like `Fprintf` got a little more
picky about the use of inappropriate verbs.

`%t` is meant to be used for booleans (it prints the word "true" or
"false"). I think what we actually wanted here was `%v`.
  • Loading branch information
brandur committed Jan 8, 2018
1 parent 99f936b commit 8565c71
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion webhook/client_handler_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ func Example() {
}

defer req.Body.Close()
fmt.Fprintf(w, "Received signed event: %t", event)
fmt.Fprintf(w, "Received signed event: %v", event)
})
log.Fatal(http.ListenAndServe(":8080", nil))
}

0 comments on commit 8565c71

Please sign in to comment.