Skip to content

Commit da57aa5

Browse files
committed
rollup merge of rust-lang#18231 : cakebaker/fix_greater_than_forty_two_closure
2 parents b3c676e + cb5593a commit da57aa5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/guide.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4387,7 +4387,7 @@ is one:
43874387

43884388
```{rust}
43894389
let greater_than_forty_two = range(0i, 100i)
4390-
.find(|x| *x >= 42);
4390+
.find(|x| *x > 42);
43914391
43924392
match greater_than_forty_two {
43934393
Some(_) => println!("We got some numbers!"),

0 commit comments

Comments
 (0)