Skip to content

Commit b433b39

Browse files
epagegortavoher
authored andcommitted
docs: Fix link
1 parent 29f1165 commit b433b39

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

clap_builder/src/builder/arg.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -492,7 +492,7 @@ impl Arg {
492492
///
493493
/// <div class="warning">
494494
///
495-
/// **NOTE:** When utilized with [`Arg::num_args(1..)`], only the **last** positional argument
495+
/// **NOTE:** When utilized with [`Arg::num_args(1..)`][Arg::num_args], only the **last** positional argument
496496
/// may be defined as having a variable number of arguments (i.e. with the highest index)
497497
///
498498
/// </div>
@@ -1359,7 +1359,7 @@ impl Arg {
13591359
///
13601360
/// <div class="warning">
13611361
///
1362-
/// **NOTE:** implicitly sets [`Arg::action(ArgAction::Set)`].
1362+
/// **NOTE:** implicitly sets [`Arg::action(ArgAction::Set)`][ArgAction::Set].
13631363
///
13641364
/// </div>
13651365
///
@@ -1487,7 +1487,7 @@ impl Arg {
14871487
///
14881488
/// **WARNING:** Prior arguments with `allow_hyphen_values(true)` get precedence over known
14891489
/// flags but known flags get precedence over the next possible positional argument with
1490-
/// `allow_hyphen_values(true)`. When combined with [`Arg::num_args(..)`],
1490+
/// `allow_hyphen_values(true)`. When combined with [`Arg::num_args(..)`][Arg::num_args],
14911491
/// [`Arg::value_terminator`] is one way to ensure processing stops.
14921492
///
14931493
/// </div>

clap_builder/src/error/kind.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -224,7 +224,7 @@ pub enum ErrorKind {
224224
/// Occurs when the user provides a value containing invalid UTF-8.
225225
///
226226
/// To allow arbitrary data
227-
/// - Set [`Arg::value_parser(value_parser!(OsString))`] for argument values
227+
/// - Set [`Arg::value_parser(value_parser!(OsString))`][crate::Arg::value_parser] for argument values
228228
/// - Set [`Command::external_subcommand_value_parser`] for external-subcommand
229229
/// values
230230
///

0 commit comments

Comments
 (0)