Guide: Change >= to > in closure
This commit is contained in:
parent
d44ea720fa
commit
cb5593a448
1 changed files with 1 additions and 1 deletions
|
@ -4347,7 +4347,7 @@ is one:
|
|||
|
||||
```{rust}
|
||||
let greater_than_forty_two = range(0i, 100i)
|
||||
.find(|x| *x >= 42);
|
||||
.find(|x| *x > 42);
|
||||
|
||||
match greater_than_forty_two {
|
||||
Some(_) => println!("We got some numbers!"),
|
||||
|
|
Loading…
Reference in a new issue