From e5d71fbe80f2262ad4341737763d44e0d2ef2390 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Kriszti=C3=A1n=20Csord=C3=A1s?= Date: Mon, 28 Oct 2019 13:48:20 +0100 Subject: [PATCH] Make if_let exercise runnable --- src/flow_control/if_let.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/flow_control/if_let.md b/src/flow_control/if_let.md index a5671332b9..22bdde8d1b 100644 --- a/src/flow_control/if_let.md +++ b/src/flow_control/if_let.md @@ -103,7 +103,7 @@ Another benefit: `if let` allows to match enum non-parameterized variants, even Would you like a challenge? Fix the following example to use `if let`: -```rust,editable,ignore +```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. enum Foo {Bar}