Skip to content

Commit

Permalink
fix doc
Browse files Browse the repository at this point in the history
  • Loading branch information
density215 committed Jul 11, 2023
1 parent b88a18c commit 6d3122b
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/util/macros.rs
Original file line number Diff line number Diff line change
Expand Up @@ -24,20 +24,25 @@
/// You can also specify ranges as like so:
///
/// ```rust
/// # #[cfg(feature = "serde")]
/// # use serde::{Serialize, Deserialize};
/// # #[macro_use] extern crate routecore;
/// # fn main() {
/// typeenum!(
/// PeerType, u8,
/// {
/// 0 => GlobalInstance,
/// 1 => RdInstance,
/// 2 => LocalInstance,
/// 3 => LocalRibInstance,
/// }
/// },
/// {
/// 4..=250 => Unassigned,
/// 251..=254 => Experimental,
/// 255 => Reserved
/// 255 => Reserved,
/// }
/// );
/// # }
/// ```
/// Note that match lines with ranges are come in a separate block after
/// the block with single selector values. Range variants have a data
Expand Down

0 comments on commit 6d3122b

Please sign in to comment.