chore: fixes some spelling mistakes

This commit is contained in:
Kevin K 2017-10-23 21:26:45 -04:00
parent 2bb5ddcee6
commit 0d6cd6e7d9
No known key found for this signature in database
GPG key ID: 17218E4B3692F01A

View file

@ -81,7 +81,7 @@ fn global_version() {
.setting(AppSettings::GlobalVersion) .setting(AppSettings::GlobalVersion)
.version("1.1") .version("1.1")
.subcommand(SubCommand::with_name("sub1")); .subcommand(SubCommand::with_name("sub1"));
app.p.propogate_settings(); app.p.propagate_settings();
assert_eq!(app.p.subcommands[0].p.meta.version, Some("1.1")); assert_eq!(app.p.subcommands[0].p.meta.version, Some("1.1"));
} }
@ -287,7 +287,7 @@ fn global_setting() {
let mut app = App::new("test") let mut app = App::new("test")
.global_setting(AppSettings::ColoredHelp) .global_setting(AppSettings::ColoredHelp)
.subcommand(SubCommand::with_name("subcmd")); .subcommand(SubCommand::with_name("subcmd"));
app.p.propogate_settings(); app.p.propagate_settings();
assert!(app.p assert!(app.p
.subcommands .subcommands
.iter() .iter()
@ -305,7 +305,7 @@ fn global_settings() {
let mut app = App::new("test") let mut app = App::new("test")
.global_settings(&[AppSettings::ColoredHelp, AppSettings::TrailingVarArg]) .global_settings(&[AppSettings::ColoredHelp, AppSettings::TrailingVarArg])
.subcommand(SubCommand::with_name("subcmd")); .subcommand(SubCommand::with_name("subcmd"));
app.p.propogate_settings(); app.p.propagate_settings();
assert!(app.p assert!(app.p
.subcommands .subcommands
.iter() .iter()