Skip to content

Commit c33b707

Browse files
committed
Unbrainfart the example
Thanks @ckrenslehner for pointing out the problem
1 parent 452aebf commit c33b707

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/env_logger.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ fn verbose() -> impl Parser<LevelFilter> {
3232
.count()
3333
.map(|l| {
3434
use LevelFilter::*;
35-
[Off, Error, Warn, Info, Debug, Trace][l.max(5)]
35+
[Off, Error, Warn, Info, Debug, Trace][l.clamp(0, 5)]
3636
})
3737
}
3838

0 commit comments

Comments
 (0)