From 22ca03bde660e9bca0fbf23b5ab228441d39ab6f Mon Sep 17 00:00:00 2001 From: Matt Ickstadt Date: Fri, 1 Sep 2017 16:16:36 -0500 Subject: [PATCH] Fix unstable book example --- .../src/language-features/match-beginning-vert.md | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/src/doc/unstable-book/src/language-features/match-beginning-vert.md b/src/doc/unstable-book/src/language-features/match-beginning-vert.md index 6ef1ab38e8d..f0a51af7fd1 100644 --- a/src/doc/unstable-book/src/language-features/match-beginning-vert.md +++ b/src/doc/unstable-book/src/language-features/match-beginning-vert.md @@ -8,12 +8,14 @@ match arm: ```rust #![feature(match_beginning_vert)] -enum Foo { A, B } +enum Foo { A, B, C } fn main() { let x = Foo::A; match x { - | A | B => {}, + | Foo::A + | Foo::B => println!("AB"), + | Foo::C => println!("C"), } } ```