Skip to content

Commit

Permalink
[release-branch.go1.21] log/slog: fix comment above log levels
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
zikaeroh authored and gopherbot committed Jul 24, 2023
1 parent 8472fcb commit b2ffc23
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion src/log/slog/level.go
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit b2ffc23

Please sign in to comment.