Skip to content

Commit ed0c8c6

Browse files
committed
Auto merge of #9552 - taiki-e:typo, r=alexcrichton
Fix typos in command_prelude.rs
2 parents 11eec1d + 98df612 commit ed0c8c6

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/cargo/util/command_prelude.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ pub trait AppExt: Sized {
5959

6060
fn arg_package(self, package: &'static str) -> Self {
6161
self._arg(
62-
optinal_opt("package", package)
62+
optional_opt("package", package)
6363
.short("p")
6464
.value_name("SPEC"),
6565
)
@@ -225,7 +225,7 @@ pub trait AppExt: Sized {
225225
fn arg_future_incompat_report(self) -> Self {
226226
self._arg(opt(
227227
"future-incompat-report",
228-
"Ouputs a future incompatibility report at the end of the build (unstable)",
228+
"Outputs a future incompatibility report at the end of the build (unstable)",
229229
))
230230
}
231231
}
@@ -240,7 +240,7 @@ pub fn opt(name: &'static str, help: &'static str) -> Arg<'static, 'static> {
240240
Arg::with_name(name).long(name).help(help)
241241
}
242242

243-
pub fn optinal_opt(name: &'static str, help: &'static str) -> Arg<'static, 'static> {
243+
pub fn optional_opt(name: &'static str, help: &'static str) -> Arg<'static, 'static> {
244244
opt(name, help).min_values(0)
245245
}
246246

0 commit comments

Comments
 (0)