aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorzikaeroh <zikaeroh@gmail.com>2023-07-20 17:41:06 -0700
committerGopher Robot <gobot@golang.org>2023-07-24 17:02:06 +0000
commitb2ffc23a828c9b86501fed7148de9a3f558c6162 (patch)
treea9decf929cdae7acf3cee79a5ca5f21ff2cffb50
parent8472fcb62d31662cb2d56722aecfaca7b968db57 (diff)
downloadgo-b2ffc23a828c9b86501fed7148de9a3f558c6162.tar.gz
go-b2ffc23a828c9b86501fed7148de9a3f558c6162.zip
[release-branch.go1.21] log/slog: fix comment above log levels
This extra newline causes pkg.go.dev and gopls to only show the bottom half of this comment; I'm pretty sure this entire thing is meant to be in the docs. Change-Id: I5bbf081fb2072d9d773d5a995bc3693dc44f65ff Reviewed-on: https://go-review.googlesource.com/c/go/+/511855 Run-TryBot: Jonathan Amsterdam <jba@google.com> Reviewed-by: Jonathan Amsterdam <jba@google.com> Reviewed-by: Carlos Amedee <carlos@golang.org> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-on: https://go-review.googlesource.com/c/go/+/512199 Reviewed-by: Dmitri Shuralyov <dmitshur@golang.org> Run-TryBot: Dmitri Shuralyov <dmitshur@golang.org> Reviewed-by: Dmitri Shuralyov <dmitshur@google.com> Auto-Submit: Dmitri Shuralyov <dmitshur@golang.org>
-rw-r--r--src/log/slog/level.go1
1 files changed, 0 insertions, 1 deletions
diff --git a/src/log/slog/level.go b/src/log/slog/level.go
index b2365f0aa5..cd1213af64 100644
--- a/src/log/slog/level.go
+++ b/src/log/slog/level.go
@@ -23,7 +23,6 @@ type Level int
// First, we wanted the default level to be Info, Since Levels are ints, Info is
// the default value for int, zero.
//
-
// Second, we wanted to make it easy to use levels to specify logger verbosity.
// Since a larger level means a more severe event, a logger that accepts events
// with smaller (or more negative) level means a more verbose logger. Logger