mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 14:22:34 +00:00
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:
parent
7d57df5c89
commit
c062182e1e
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||||
|
|
Loading…
Reference in a new issue