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"), } } ```