From: Sean Liao Date: Sat, 26 Aug 2023 12:32:09 +0000 (+0100) Subject: log/slog: fix documented value type for SourceKey X-Git-Tag: go1.22rc1~1056 X-Git-Url: http://www.git.cypherpunks.su/?a=commitdiff_plain;h=92f7209ebd11566c846032d021c1b2d18bd57843;p=gostls13.git log/slog: fix documented value type for SourceKey Fixes #62294 Change-Id: I5df0d8bdf5ae8bc11ffa0e66e3e8776fd3e565a2 Reviewed-on: https://go-review.googlesource.com/c/go/+/523195 Run-TryBot: Sean Liao Reviewed-by: Jonathan Amsterdam TryBot-Result: Gopher Robot Run-TryBot: Jonathan Amsterdam Reviewed-by: Joedian Reid --- diff --git a/src/log/slog/handler.go b/src/log/slog/handler.go index 52c8e7e6ad..369b0a384e 100644 --- a/src/log/slog/handler.go +++ b/src/log/slog/handler.go @@ -179,7 +179,7 @@ const ( // message of the log call. The associated value is a string. MessageKey = "msg" // SourceKey is the key used by the built-in handlers for the source file - // and line of the log call. The associated value is a string. + // and line of the log call. The associated value is a *[Source]. SourceKey = "source" )