test: fix numf_parser doctest #13 #5
cargo devel CI / cargo CI (push) Successful in 1m15s Details

This commit is contained in:
Christoph J. Scherr 2024-05-13 13:31:33 +02:00
parent 399021ecc6
commit 18cccddbb2
1 changed files with 3 additions and 3 deletions

View File

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