mirror of
https://github.com/golang/go
synced 2024-11-23 01:30:02 -07: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:
parent
7bd08a49c2
commit
7bf540012c
@ -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()
|
||||
|
Loading…
Reference in New Issue
Block a user