mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 06:12:40 +00:00
Merge pull request #3624 from Chloe-Woahie/master
Fixed documentation typos
This commit is contained in:
commit
b1003a1c54
2 changed files with 4 additions and 4 deletions
|
@ -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.
|
||||
///
|
||||
|
|
|
@ -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> {
|
||||
|
|
Loading…
Reference in a new issue