]> Cypherpunks repositories - gostls13.git/commitdiff
log/slog: fix comments for *handleState.appendAttr
authorJes Cok <xigua67damn@gmail.com>
Sat, 11 Nov 2023 05:32:13 +0000 (05:32 +0000)
committerJonathan Amsterdam <jba@google.com>
Fri, 17 Nov 2023 16:28:15 +0000 (16:28 +0000)
Change-Id: I8b9a6d177d297b9b1e890bf1d8a46a4b3311910f
GitHub-Last-Rev: 24067b8714129debd778098b1906d3c5cc3f9d5e
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>

src/log/slog/handler.go

index 9f6d88b1696bf71b2f046f8527e4bf1b1c34cc25..2182bfb609383b4ee88cb841eb6eb3ad6fbb5513 100644 (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()