Skip to content

Commit

Permalink
glog: fix doc comment for V (#47)
Browse files Browse the repository at this point in the history
V logs if the level is at most the -v setting.
(If it is bigger (V(2) with -v=1) then it doesn't.)
The text said "at least" instead.
  • Loading branch information
Spground committed Aug 20, 2021
1 parent cba94dd commit 9ef845f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion glog.go
Original file line number Diff line number Diff line change
Expand Up @@ -994,7 +994,7 @@ type Verbose bool
//
// Whether an individual call to V generates a log record depends on the setting of
// the -v and --vmodule flags; both are off by default. If the level in the call to
// V is at least the value of -v, or of -vmodule for the source file containing the
// V is at most the value of -v, or of -vmodule for the source file containing the
// call, the V call will log.
func V(level Level) Verbose {
// This function tries hard to be cheap unless there's work to do.
Expand Down

0 comments on commit 9ef845f

Please sign in to comment.