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

log/slog: fix comments for *handleState.appendAttr

This commit is contained in:
Jes Cok 2023-11-11 13:24:13 +08:00
parent 8da6405e0d
commit 24067b8714

View File

@ -461,9 +461,8 @@ func (s *handleState) appendAttrs(as []Attr) bool {
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.
// after replacement).
// It reports whether something was appended.
func (s *handleState) appendAttr(a Attr) bool {
a.Value = a.Value.Resolve()