Skip to content

Commit 4804c5a

Browse files
authoredOct 29, 2019
Merge pull request #1289 from cskrisz/if_let
Make if_let exercise runnable
2 parents 0b111ea + e5d71fb commit 4804c5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/flow_control/if_let.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -103,7 +103,7 @@ Another benefit: `if let` allows to match enum non-parameterized variants, even
103103

104104
Would you like a challenge? Fix the following example to use `if let`:
105105

106-
```rust,editable,ignore
106+
```rust,editable,ignore,mdbook-runnable
107107
// This enum purposely doesn't #[derive(PartialEq)],
108108
// neither we implement PartialEq for it. That's why comparing Foo::Bar==a fails below.
109109
enum Foo {Bar}

0 commit comments

Comments
 (0)
Please sign in to comment.