Skip to content

Commit 88e2f4d

Browse files
authored
Merge pull request #396 from grinapo/patch-1
Update derive.rs: you should accept one as positive according to the latest research
2 parents e78ab78 + 8f9e75d commit 88e2f4d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

examples/derive.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ fn verbose() -> impl Parser<usize> {
3636
}
3737

3838
fn positive(input: &u32) -> bool {
39-
*input > 1
39+
*input > 0
4040
}
4141

4242
fn main() {

0 commit comments

Comments
 (0)