docs: fix example that as runtime panic. Relates to #3864

Relevant comment: https://github.com/clap-rs/clap/issues/3864#issuecomment-1374297155
This commit is contained in:
Trevor Gross 2023-01-06 19:20:54 -05:00
parent 7d57df5c89
commit c062182e1e

View file

@ -278,7 +278,7 @@ pub trait FromArgMatches: Sized {
/// #[derive(clap::Args)] /// #[derive(clap::Args)]
/// struct LogArgs { /// struct LogArgs {
/// #[arg(long, short = 'v', action = clap::ArgAction::Count)] /// #[arg(long, short = 'v', action = clap::ArgAction::Count)]
/// verbose: i8, /// verbose: u8,
/// } /// }
/// ``` /// ```
pub trait Args: FromArgMatches + Sized { pub trait Args: FromArgMatches + Sized {