Skip to content

Commit bbb0a50

Browse files
authored
Merge pull request #1308 from yawpitch/master
Improve grammar in example of 'in let' section
2 parents 32facd5 + b461a3a commit bbb0a50

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/flow_control/if_let.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -104,8 +104,8 @@ Another benefit is that `if let` allows us to match non-parameterized enum varia
104104
Would you like a challenge? Fix the following example to use `if let`:
105105

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

0 commit comments

Comments
 (0)