Skip to content

Commit 1fdd52d

Browse files
jbaeric
authored andcommitted
testing/slogtest: reword a confusing explanation
Updates golang#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]>
1 parent d606dc3 commit 1fdd52d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/testing/slogtest/slogtest.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -163,7 +163,7 @@ func TestHandler(h slog.Handler, results func() []map[string]any) error {
163163
},
164164
},
165165
{
166-
explanation: withSource("a Handler should not output groups for an empty Record"),
166+
explanation: withSource("a Handler should not output groups if there are no attributes"),
167167
f: func(l *slog.Logger) {
168168
l.With("a", "b").WithGroup("G").With("c", "d").WithGroup("H").Info("msg")
169169
},

0 commit comments

Comments
 (0)