Skip to content

Commit

Permalink
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 <[email protected]>
Reviewed-by: Jonathan Amsterdam <[email protected]>
Reviewed-by: Carlos Amedee <[email protected]>
TryBot-Result: Gopher Robot <[email protected]>
  • Loading branch information
zikaeroh authored and jba committed Jul 21, 2023
1 parent c6b5dce commit 050d4d3
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 050d4d3

Please sign in to comment.