Skip to content

Commit

Permalink
docs(tutorial): Fix flag actions
Browse files Browse the repository at this point in the history
Fixes #4359
  • Loading branch information
epage committed Oct 9, 2022
1 parent ec3fdc4 commit 59bf166
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 5 deletions.
4 changes: 2 additions & 2 deletions src/_derive/_tutorial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -116,8 +116,8 @@
#![doc = include_str!("../../examples/tutorial_derive/03_01_flag_bool.md")]
//!
//! Note that the default [`ArgAction`][crate::ArgAction] for a `bool` field is
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple values, use
//! [`Append`][crate::ArgAction::Append]:
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple flags, use
//! [`Count`][crate::ArgAction::Count]:
//!
//! ```rust
#![doc = include_str!("../../examples/tutorial_derive/03_01_flag_count.rs")]
Expand Down
4 changes: 1 addition & 3 deletions src/_tutorial.rs
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,7 @@
//! ```
#![doc = include_str!("../examples/tutorial_builder/03_01_flag_bool.md")]
//!
//! Note that the default [`ArgAction`][crate::ArgAction]` for a `bool` field is
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple values, use
//! [`Append`][crate::ArgAction::Append]:
//! To accept multiple flags, use [`Count`][crate::ArgAction::Count]:
//!
//! ```rust
#![doc = include_str!("../examples/tutorial_builder/03_01_flag_count.rs")]
Expand Down

0 comments on commit 59bf166

Please sign in to comment.