From 87c87565afade230a8020c83f3691bb91080e861 Mon Sep 17 00:00:00 2001 From: Chloe-Woahie <“longwelldotpy@gmail.com”> Date: Sun, 10 Apr 2022 12:43:09 -0400 Subject: [PATCH] docs: Fixed documentation typos --- src/build/command.rs | 2 +- src/derive.rs | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/build/command.rs b/src/build/command.rs index 03e4e00c910..c29fee3d2e7 100644 --- a/src/build/command.rs +++ b/src/build/command.rs @@ -223,7 +223,7 @@ impl<'help> App<'help> { self } - /// Allows one to mutate an [`Arg`] after it's been added to an [`Command`]. + /// Allows one to mutate an [`Arg`] after it's been added to a [`Command`]. /// /// This can be useful for modifying the auto-generated help or version arguments. /// diff --git a/src/derive.rs b/src/derive.rs index 123693241ec..d6b3e553d17 100644 --- a/src/derive.rs +++ b/src/derive.rs @@ -226,11 +226,11 @@ pub trait Parser: FromArgMatches + CommandFactory + Sized { } } -/// Create an [`Command`] relevant for a user-defined container. +/// Create a [`Command`] relevant for a user-defined container. /// /// Derived as part of [`Parser`]. pub trait CommandFactory: Sized { - /// Build an [`Command`] that can instantiate `Self`. + /// Build a [`Command`] that can instantiate `Self`. /// /// See [`FromArgMatches::from_arg_matches`] for instantiating `Self`. fn command<'help>() -> Command<'help> { @@ -240,7 +240,7 @@ pub trait CommandFactory: Sized { /// Deprecated, replaced with `CommandFactory::command` #[deprecated(since = "3.1.0", note = "Replaced with `CommandFactory::command")] fn into_app<'help>() -> Command<'help>; - /// Build an [`Command`] that can update `self`. + /// Build a [`Command`] that can update `self`. /// /// See [`FromArgMatches::update_from_arg_matches`] for updating `self`. fn command_for_update<'help>() -> Command<'help> {