From 973f30fb224fc8070296ea0bf918cafd8073ad32 Mon Sep 17 00:00:00 2001 From: Ed Page Date: Fri, 30 Sep 2022 13:16:13 -0500 Subject: [PATCH] refactor(docs): Use intra-doc links to avoid breakages --- src/builder/arg.rs | 1 - src/macros.rs | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/src/builder/arg.rs b/src/builder/arg.rs index e9cd1a3518e..15f5aaac663 100644 --- a/src/builder/arg.rs +++ b/src/builder/arg.rs @@ -466,7 +466,6 @@ impl Arg { /// [`Arg::short`]: Arg::short() /// [`Arg::long`]: Arg::long() /// [`Arg::num_args(true)`]: Arg::num_args() - /// [`panic!`]: https://doc.rust-lang.org/std/macro.panic!.html /// [`Command`]: crate::Command #[inline] #[must_use] diff --git a/src/macros.rs b/src/macros.rs index df0680ffb8c..0e609eef0cc 100644 --- a/src/macros.rs +++ b/src/macros.rs @@ -533,7 +533,7 @@ macro_rules! arg_impl { /// assert_eq!(*m.get_one::("debug").unwrap(), 0); /// assert_eq!(m.get_one::("input"), None); /// ``` -/// [`Arg`]: ./struct.Arg.html +/// [`Arg`]: crate::Arg #[macro_export] macro_rules! arg { ( $name:ident: $($tail:tt)+ ) => {