aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRhys Hiltner <rhys.hiltner@gmail.com>2026-02-03 09:23:33 -0800
committerMichael Pratt <mpratt@google.com>2026-02-06 10:14:25 -0800
commit3d8b52064612fcc2e27e09ab430041b6150e7f4f (patch)
tree897c953f5b82ef88d520d924356c018bf4143851
parent70d5aa7ba25f23b02d87512c5a6b6a9c699334ee (diff)
downloadgo-3d8b52064612fcc2e27e09ab430041b6150e7f4f.tar.xz
[release-branch.go1.26] log/slog: correct method names in MultiHandler docs
For #77428. Fixes #77429. 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> (cherry picked from commit ae842f71461ad178eff7283bc36e150fe284b9aa) Reviewed-on: https://go-review.googlesource.com/c/go/+/742581 Reviewed-by: Rhys Hiltner <rhys.hiltner@gmail.com>
-rw-r--r--src/log/slog/multi_handler.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/log/slog/multi_handler.go b/src/log/slog/multi_handler.go
index 4cc802b29b..1ee798db37 100644
--- a/src/log/slog/multi_handler.go
+++ b/src/log/slog/multi_handler.go
@@ -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
}