]> Cypherpunks repositories - gostls13.git/commitdiff
log/slog: fix documented value type for SourceKey
authorSean Liao <sean@liao.dev>
Sat, 26 Aug 2023 12:32:09 +0000 (13:32 +0100)
committerJonathan Amsterdam <jba@google.com>
Tue, 29 Aug 2023 13:26:51 +0000 (13:26 +0000)
Fixes #62294

Change-Id: I5df0d8bdf5ae8bc11ffa0e66e3e8776fd3e565a2
Reviewed-on: https://go-review.googlesource.com/c/go/+/523195
Run-TryBot: Sean Liao <sean@liao.dev>
Reviewed-by: Jonathan Amsterdam <jba@google.com>
TryBot-Result: Gopher Robot <gobot@golang.org>
Run-TryBot: Jonathan Amsterdam <jba@google.com>
Reviewed-by: Joedian Reid <joedian@golang.org>
src/log/slog/handler.go

index 52c8e7e6adb476f27775b9fb307ccf3a484432f5..369b0a384e1dfcbe349fc8212d27547711052a82 100644 (file)
@@ -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"
 )