Skip to content

Commit 9ef845f

Browse files
authored
glog: fix doc comment for V (#47)
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.
1 parent cba94dd commit 9ef845f

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

glog.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -994,7 +994,7 @@ type Verbose bool
994994
//
995995
// Whether an individual call to V generates a log record depends on the setting of
996996
// the -v and --vmodule flags; both are off by default. If the level in the call to
997-
// V is at least the value of -v, or of -vmodule for the source file containing the
997+
// V is at most the value of -v, or of -vmodule for the source file containing the
998998
// call, the V call will log.
999999
func V(level Level) Verbose {
10001000
// This function tries hard to be cheap unless there's work to do.

0 commit comments

Comments
 (0)