Skip to content

Commit fca945a

Browse files
committed
Improve grammar in example of 'in let' section
Extends work done in #1305 to comments in the example code.
1 parent 32facd5 commit fca945a

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)