Skip to content

Commit

Permalink
Guide: Change >= to > in closure
Browse files Browse the repository at this point in the history
  • Loading branch information
cakebaker committed Oct 22, 2014
1 parent d44ea72 commit cb5593a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/guide.md
Expand Up @@ -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!"),
Expand Down

4 comments on commit cb5593a

@bors
Copy link
Contributor

@bors bors commented on cb5593a Oct 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from alexcrichton
at cakebaker@cb5593a

@bors
Copy link
Contributor

@bors bors commented on cb5593a Oct 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging cakebaker/rust/fix_greater_than_forty_two_closure = cb5593a into auto

@bors
Copy link
Contributor

@bors bors commented on cb5593a Oct 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

cakebaker/rust/fix_greater_than_forty_two_closure = cb5593a merged ok, testing candidate = 290e620b

@bors
Copy link
Contributor

@bors bors commented on cb5593a Oct 23, 2014

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.