1
0
mirror of https://github.com/golang/go synced 2024-09-28 22:24:29 -06:00

log/slog: fix comments for *handleState.appendAttr

Change-Id: I8b9a6d177d297b9b1e890bf1d8a46a4b3311910f
GitHub-Last-Rev: 24067b8714
GitHub-Pull-Request: golang/go#64070
Reviewed-on: https://go-review.googlesource.com/c/go/+/541519
Reviewed-by: Jonathan Amsterdam <jba@google.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Bryan Mills <bcmills@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jes Cok <xigua67damn@gmail.com>
This commit is contained in:
Jes Cok 2023-11-11 05:32:13 +00:00 committed by Jonathan Amsterdam
parent 7bd08a49c2
commit 7bf540012c

View File

@ -461,9 +461,8 @@ func (s *handleState) appendAttrs(as []Attr) bool {
return nonEmpty return nonEmpty
} }
// appendAttr appends the Attr's key and value using app. // appendAttr appends the Attr's key and value.
// It handles replacement and checking for an empty key. // It handles replacement and checking for an empty key.
// after replacement).
// It reports whether something was appended. // It reports whether something was appended.
func (s *handleState) appendAttr(a Attr) bool { func (s *handleState) appendAttr(a Attr) bool {
a.Value = a.Value.Resolve() a.Value = a.Value.Resolve()