v0.3.0 #14

Merged
PlexSheep merged 18 commits from devel into master 2024-05-13 16:34:21 +02:00
1 changed files with 3 additions and 3 deletions
Showing only changes of commit 18cccddbb2 - Show all commits

View File

@ -228,12 +228,12 @@ impl Format {
/// ///
/// ``` /// ```
/// use clap::Parser; /// use clap::Parser;
/// use numf::parser::numf_parser; /// use numf::format::numf_parser;
/// ///
/// #[derive(Parser)] /// #[derive(Parser)]
/// struct Args { /// struct Args {
/// #[clap(short, long, value_parser=numf_parser::<u32>)] /// #[clap(short, long, value_parser=numf_parser)]
/// address: u32, /// address: u128,
/// } /// }
/// let args = Args::parse_from(&["", "-a", "0x10"]); /// let args = Args::parse_from(&["", "-a", "0x10"]);
/// assert_eq!(args.address, 16); /// assert_eq!(args.address, 16);