Merge pull request #3624 from Chloe-Woahie/master

Fixed documentation typos
This commit is contained in:
Ed Page 2022-04-11 07:06:55 -05:00 committed by GitHub
commit b1003a1c54
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 4 deletions

View file

@ -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.
///

View file

@ -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> {