We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 32facd5 + b461a3a commit bbb0a50Copy full SHA for bbb0a50
src/flow_control/if_let.md
@@ -104,8 +104,8 @@ Another benefit is that `if let` allows us to match non-parameterized enum varia
104
Would you like a challenge? Fix the following example to use `if let`:
105
106
```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.
+// This enum purposely neither implements nor derives PartialEq.
+// That is why comparing Foo::Bar == a fails below.
109
enum Foo {Bar}
110
111
fn main() {
0 commit comments