Skip to content

Commit

Permalink
doc fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Geal committed Mar 26, 2018
1 parent fd490f6 commit 2943ae5
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/branch.rs
Original file line number Diff line number Diff line change
Expand Up @@ -411,10 +411,12 @@ macro_rules! alt_complete (
/// side of pattern, like this:
///
/// ```ignore
/// named!(xyz, tag!("XYZ"));
/// named!(num, tag!("123"));
/// named!(sw,
/// switch!(take!(4),
/// b"abcd" => tag!("XYZ") |
/// b"efgh" => tag!("123")
/// b"abcd" => xyz |
/// b"efgh" => 123
/// )
/// );
/// ```
Expand Down

0 comments on commit 2943ae5

Please sign in to comment.