Skip to content

Commit

Permalink
testing/slogtest: reword a confusing explanation
Browse files Browse the repository at this point in the history
Updates #61758.

Change-Id: I4ce0359f676b6832e40203e1034ba1c4f6d2b2ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/516155
Run-TryBot: Jonathan Amsterdam <[email protected]>
Reviewed-by: Patrick Ohly <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
Reviewed-by: Alan Donovan <[email protected]>
  • Loading branch information
jba committed Aug 7, 2023
1 parent bb5974e commit 2bf8b39
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/slogtest/slogtest.go
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ func TestHandler(h slog.Handler, results func() []map[string]any) error {
},
},
{
explanation: withSource("a Handler should not output groups for an empty Record"),
explanation: withSource("a Handler should not output groups if there are no attributes"),
f: func(l *slog.Logger) {
l.With("a", "b").WithGroup("G").With("c", "d").WithGroup("H").Info("msg")
},
Expand Down

0 comments on commit 2bf8b39

Please sign in to comment.