Skip to content

Commit 59bf166

Browse files
committed
docs(tutorial): Fix flag actions
Fixes #4359
1 parent ec3fdc4 commit 59bf166

File tree

2 files changed

+3
-5
lines changed

2 files changed

+3
-5
lines changed

src/_derive/_tutorial.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -116,8 +116,8 @@
116116
#![doc = include_str!("../../examples/tutorial_derive/03_01_flag_bool.md")]
117117
//!
118118
//! Note that the default [`ArgAction`][crate::ArgAction] for a `bool` field is
119-
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple values, use
120-
//! [`Append`][crate::ArgAction::Append]:
119+
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple flags, use
120+
//! [`Count`][crate::ArgAction::Count]:
121121
//!
122122
//! ```rust
123123
#![doc = include_str!("../../examples/tutorial_derive/03_01_flag_count.rs")]

src/_tutorial.rs

+1-3
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,7 @@
110110
//! ```
111111
#![doc = include_str!("../examples/tutorial_builder/03_01_flag_bool.md")]
112112
//!
113-
//! Note that the default [`ArgAction`][crate::ArgAction]` for a `bool` field is
114-
//! [`SetTrue`][crate::ArgAction::SetTrue]. To accept multiple values, use
115-
//! [`Append`][crate::ArgAction::Append]:
113+
//! To accept multiple flags, use [`Count`][crate::ArgAction::Count]:
116114
//!
117115
//! ```rust
118116
#![doc = include_str!("../examples/tutorial_builder/03_01_flag_count.rs")]

0 commit comments

Comments
 (0)