Skip to content

Commit

Permalink
Merge pull request #3624 from Chloe-Woahie/master
Browse files Browse the repository at this point in the history
Fixed documentation typos
  • Loading branch information
epage committed Apr 11, 2022
2 parents b73b7ef + 87c8756 commit b1003a1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion src/build/command.rs
Expand Up @@ -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.
///
Expand Down
6 changes: 3 additions & 3 deletions src/derive.rs
Expand Up @@ -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> {
Expand All @@ -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> {
Expand Down

0 comments on commit b1003a1

Please sign in to comment.