]> Cypherpunks repositories - gostls13.git/commitdiff
log/slog: correct method names in MultiHandler docs
authorRhys Hiltner <rhys.hiltner@gmail.com>
Tue, 3 Feb 2026 17:23:33 +0000 (09:23 -0800)
committerGopher Robot <gobot@golang.org>
Fri, 6 Feb 2026 17:30:08 +0000 (09:30 -0800)
Fixes #77428

Change-Id: I02d76ac9220fb2e0df404e4a446953bc0b56475f
Reviewed-on: https://go-review.googlesource.com/c/go/+/741560
Auto-Submit: Rhys Hiltner <rhys.hiltner@gmail.com>
LUCI-TryBot-Result: Go LUCI <golang-scoped@luci-project-accounts.iam.gserviceaccount.com>
Reviewed-by: Michael Knyszek <mknyszek@google.com>
Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org>
Reviewed-by: Dmitri Shuralyov <dmitshur@google.com>
src/log/slog/multi_handler.go

index 4cc802b29ba65350c15a1f7126972f84c40e1353..1ee798db37b36ecbe323b2a393e6fbaa53a77589 100644 (file)
@@ -17,8 +17,8 @@ func NewMultiHandler(handlers ...Handler) *MultiHandler {
 }
 
 // MultiHandler is a [Handler] that invokes all the given Handlers.
-// Its Enable method reports whether any of the handlers' Enabled methods return true.
-// Its Handle, WithAttr and WithGroup methods call the corresponding method on each of the enabled handlers.
+// Its Enabled method reports whether any of the handlers' Enabled methods return true.
+// Its Handle, WithAttrs and WithGroup methods call the corresponding method on each of the enabled handlers.
 type MultiHandler struct {
        multi []Handler
 }