Skip to content

Commit

Permalink
simplify ExampleValueWriter
Browse files Browse the repository at this point in the history
  • Loading branch information
pierrre committed Aug 5, 2024
1 parent 40e34d9 commit 4f51434
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pretty_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ func ExampleFormatter() {

func ExampleValueWriter() {
vw := func(c *Config, w io.Writer, st *State, v reflect.Value) bool {
_, _ = io.WriteString(w, "example")
WriteString(w, "example")
return true
}
c := NewConfig()
Expand Down

0 comments on commit 4f51434

Please sign in to comment.