From: Kevin Burke Date: Tue, 7 Nov 2023 21:43:23 +0000 (-0800) Subject: log/slog: fix method name in docs X-Git-Tag: go1.22rc1~387 X-Git-Url: http://www.git.cypherpunks.ru/?p=gostls13.git;a=commitdiff_plain;h=fa903593fb7c40a5745817b68d9a71ab6b934009 log/slog: fix method name in docs My hunch is the method was renamed during the development process but the code comment was not updated to match. Change-Id: Ib7aafc863f82a6bbe09e68dc3c5e087e16f228a9 Reviewed-on: https://go-review.googlesource.com/c/go/+/540536 Reviewed-by: Jonathan Amsterdam Reviewed-by: Damien Neil LUCI-TryBot-Result: Go LUCI --- diff --git a/src/log/slog/record.go b/src/log/slog/record.go index 8afe253bc8..97c87019a6 100644 --- a/src/log/slog/record.go +++ b/src/log/slog/record.go @@ -193,7 +193,7 @@ type Source struct { Line int `json:"line"` } -// attrs returns the non-zero fields of s as a slice of attrs. +// group returns the non-zero fields of s as a slice of attrs. // It is similar to a LogValue method, but we don't want Source // to implement LogValuer because it would be resolved before // the ReplaceAttr function was called.