From 2bf8b3985ff25a62d14e0b105c1b4d0637add51a Mon Sep 17 00:00:00 2001 From: Jonathan Amsterdam Date: Fri, 4 Aug 2023 14:39:48 -0400 Subject: [PATCH] testing/slogtest: reword a confusing explanation Updates #61758. Change-Id: I4ce0359f676b6832e40203e1034ba1c4f6d2b2ed Reviewed-on: https://go-review.googlesource.com/c/go/+/516155 Run-TryBot: Jonathan Amsterdam Reviewed-by: Patrick Ohly TryBot-Result: Gopher Robot Reviewed-by: Alan Donovan --- src/testing/slogtest/slogtest.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/testing/slogtest/slogtest.go b/src/testing/slogtest/slogtest.go index b16d1227dc..6f6fa902d5 100644 --- a/src/testing/slogtest/slogtest.go +++ b/src/testing/slogtest/slogtest.go @@ -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") },