Skip to content

Commit 5c9b0d4

Browse files
committed
docs(src/app/mod.rs): fix some typos
1 parent ff5d1a7 commit 5c9b0d4

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

src/app/mod.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ impl<'a, 'b> App<'a, 'b> {
109109
a
110110
}
111111

112-
/// Creates a new instace of [`App`] from a .yml (YAML) file. A full example of supported YAML
112+
/// Creates a new instance of [`App`] from a .yml (YAML) file. A full example of supported YAML
113113
/// objects can be found in [`examples/17_yaml.rs`] and [`examples/17_yaml.yml`]. One great use
114114
/// for using YAML is when supporting multiple languages and dialects, as each language could
115115
/// be a distinct YAML file and determined at compiletime via `cargo` "features" in your
@@ -177,7 +177,7 @@ impl<'a, 'b> App<'a, 'b> {
177177
}
178178

179179
/// Overrides the system-determined binary name. This should only be used when absolutely
180-
/// neccessary, such as when the binary name for your application is misleading, or perhaps
180+
/// necessary, such as when the binary name for your application is misleading, or perhaps
181181
/// *not* how the user should invoke your program.
182182
///
183183
/// **Pro-tip:** When building things such as third party `cargo` subcommands, this setting
@@ -614,7 +614,7 @@ impl<'a, 'b> App<'a, 'b> {
614614
self
615615
}
616616

617-
/// Adds an [argument] to the list of valid possibilties.
617+
/// Adds an [argument] to the list of valid possibilities.
618618
///
619619
/// # Examples
620620
///
@@ -893,7 +893,7 @@ impl<'a, 'b> App<'a, 'b> {
893893
self
894894
}
895895

896-
/// Adds a [`SubCommand`] to the list of valid possibilties. Subcommands are effectively
896+
/// Adds a [`SubCommand`] to the list of valid possibilities. Subcommands are effectively
897897
/// sub-[`App`]s, because they can contain their own arguments, subcommands, version, usage,
898898
/// etc. They also function just like [`App`]s, in that they get their own auto generated help,
899899
/// version, and usage.
@@ -915,7 +915,7 @@ impl<'a, 'b> App<'a, 'b> {
915915
self
916916
}
917917

918-
/// Adds multiple subcommands to the list of valid possibilties by iterating over an
918+
/// Adds multiple subcommands to the list of valid possibilities by iterating over an
919919
/// [`IntoIterator`] of [`SubCommand`]s
920920
///
921921
/// # Examples
@@ -1052,9 +1052,9 @@ impl<'a, 'b> App<'a, 'b> {
10521052
/// The following example generates a bash completion script via a `build.rs` script. In this
10531053
/// simple example, we'll demo a very small application with only a single subcommand and two
10541054
/// args. Real applications could be many multiple levels deep in subcommands, and have tens or
1055-
/// potentiall hundreds of arguments.
1055+
/// potentially hundreds of arguments.
10561056
///
1057-
/// First, it helps if we separate out our `App` definition into a seperate file. Whether you
1057+
/// First, it helps if we separate out our `App` definition into a separate file. Whether you
10581058
/// do this as a function, or bare App definition is a matter of personal preference.
10591059
///
10601060
/// ```

0 commit comments

Comments
 (0)