Skip to content

Commit

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

Change-Id: I4ce0359f676b6832e40203e1034ba1c4f6d2b2ed
Reviewed-on: https://go-review.googlesource.com/c/go/+/516155
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Patrick Ohly <patrick.ohly@googlemail.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Reviewed-by: Alan Donovan <adonovan@google.com>
  • Loading branch information
jba authored and eric committed Sep 7, 2023
1 parent 26c3845 commit ddcd0ee
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/testing/slogtest/slogtest.go
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 ddcd0ee

Please sign in to comment.