Skip to content

Commit

Permalink
Merge pull request #1308 from yawpitch/master
Browse files Browse the repository at this point in the history
Improve grammar in example of 'in let' section
  • Loading branch information
marioidival committed Feb 18, 2020
2 parents 32facd5 + b461a3a commit bbb0a50
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/flow_control/if_let.md
Original file line number Diff line number Diff line change
Expand Up @@ -104,8 +104,8 @@ Another benefit is that `if let` allows us to match non-parameterized enum varia
Would you like a challenge? Fix the following example to use `if let`:

```rust,editable,ignore,mdbook-runnable
// This enum purposely doesn't #[derive(PartialEq)],
// neither we implement PartialEq for it. That's why comparing Foo::Bar==a fails below.
// This enum purposely neither implements nor derives PartialEq.
// That is why comparing Foo::Bar == a fails below.
enum Foo {Bar}
fn main() {
Expand Down

0 comments on commit bbb0a50

Please sign in to comment.