summaryrefslogtreecommitdiff
path: root/src/generator
diff options
context:
space:
mode:
Diffstat (limited to 'src/generator')
-rw-r--r--src/generator/mod.rs4
-rw-r--r--src/generator/utils.rs2
2 files changed, 3 insertions, 3 deletions
diff --git a/src/generator/mod.rs b/src/generator/mod.rs
index a371f68..415913e 100644
--- a/src/generator/mod.rs
+++ b/src/generator/mod.rs
@@ -36,7 +36,7 @@ pub trait Generator {
/// ```
fn file_name(&self, name: &str) -> String;
- /// Generates output out of [`clap::Command`](Command).
+ /// Generates output out of [`clap::Command`].
///
/// # Panics
///
@@ -44,7 +44,7 @@ pub trait Generator {
///
/// # Examples
///
- /// The following example generator displays the [`clap::Command`](Command)
+ /// The following example generator displays the [`clap::Command`]
/// as if it is printed using [`std::println`].
///
/// ```
diff --git a/src/generator/utils.rs b/src/generator/utils.rs
index ca76d18..6ea10d2 100644
--- a/src/generator/utils.rs
+++ b/src/generator/utils.rs
@@ -109,7 +109,7 @@ pub fn longs_and_visible_aliases(p: &Command) -> Vec<String> {
.collect()
}
-/// Gets all the flags of a [`clap::Command`](Command).
+/// Gets all the flags of a [`clap::Command`].
/// Includes `help` and `version` depending on the [`clap::Command`] settings.
pub fn flags(p: &Command) -> Vec<Arg> {
debug!("flags: name={}", p.get_name());