Skip to content

Commit 22ca03b

Browse files
committed
Fix unstable book example
1 parent eb143c3 commit 22ca03b

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

src/doc/unstable-book/src/language-features/match-beginning-vert.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -8,12 +8,14 @@ match arm:
88
```rust
99
#![feature(match_beginning_vert)]
1010

11-
enum Foo { A, B }
11+
enum Foo { A, B, C }
1212

1313
fn main() {
1414
let x = Foo::A;
1515
match x {
16-
| A | B => {},
16+
| Foo::A
17+
| Foo::B => println!("AB"),
18+
| Foo::C => println!("C"),
1719
}
1820
}
1921
```

0 commit comments

Comments
 (0)