Repository: kbknapp/clap-rs
Pull request #956 (2017-05-11 05:49:10)

trivial typo fixes


<!-- Reviewable:start -->
This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/kbknapp/clap-rs/956)
<!-- Reviewable:end -->


mention-bot: @guanqun, thanks for your PR! By analyzing the history of the files in this pull request, we identified @kbknapp and @Vinatorul to be potential reviewers.

Patch:
diff --git a/Cargo.toml b/Cargo.toml
index 23bf1f24..89b39a7b 100644
--- a/Cargo.toml
+++ b/Cargo.toml
@@ -17,14 +17,14 @@ A simple to use, efficient, and full featured  Command Line Argument Parser
 
 [dependencies]
 bitflags              = "0.8.0"
-vec_map               = "0.7.0"
+vec_map               = "0.8"
 unicode-width         = "0.1.4"
 unicode-segmentation  = "1.0.1"
 strsim    = { version = "0.6.0",  optional = true }
 ansi_term = { version = "0.9.0",  optional = true }
 term_size = { version = "0.3.0",  optional = true }
 yaml-rust = { version = "0.3.5",  optional = true }
-clippy    = { version = "~0.0.118", optional = true }
+clippy    = { version = "~0.0.131", optional = true }
 atty      = { version = "0.2.2",  optional = true }
 
 [dev-dependencies]
diff --git a/examples/09_auto_version.rs b/examples/09_auto_version.rs
index 28f7f340..dfd221f0 100644
--- a/examples/09_auto_version.rs
+++ b/examples/09_auto_version.rs
@@ -24,6 +24,6 @@ fn main() {
        .version(crate_version!())
        .get_matches();
 
-    // running the this app with the -V or --version will display whatever version is in your
+    // running this app with the -V or --version will display whatever version is in your
     // Cargo.toml, the default being: myapp 0.0.1
 }
diff --git a/examples/17_yaml.yml b/examples/17_yaml.yml
index 4e558915..b0d58b39 100644
--- a/examples/17_yaml.yml
+++ b/examples/17_yaml.yml
@@ -65,7 +65,7 @@ args:
 # the list is the name of the subcommand, and all settings for that command are
 # are part of a Hash object
 subcommands:
-    # The nae of this subcommand will be 'subcmd' which can be accessed in your
+    # The name of this subcommand will be 'subcmd' which can be accessed in your
     # Rust code later
     - subcmd:
         about: demos subcommands from yaml


Test patch:
diff --git a/tests/help.rs b/tests/help.rs
index 32dda3e3..9bbb4fd3 100644
--- a/tests/help.rs
+++ b/tests/help.rs
@@ -394,8 +394,8 @@ FLAGS:
     -v, --verbose    Prints out more stuff.
 
 OPTIONS:
-    -f, --frequency <HERTZ>    The sampling frequency. By default, this is 99 Hz.
-    -t, --timeout <SECONDS>    Timeout in seconds. By default, there is no timeout.
+    -f, --frequency <HERTZ>    The sampling frequency.
+    -t, --timeout <SECONDS>    Timeout in seconds.
 
 ARGS:
     <BINFILE>    The path of the binary to be profiled. for a binary.
@@ -487,14 +487,14 @@ fn args_with_last_usage() {
             .multiple(true)
         )
         .arg(Arg::with_name("timeout")
-            .help("Timeout in seconds. By default, there is no timeout.")
+            .help("Timeout in seconds.")
             .short("t")
             .long("timeout")
             .value_name("SECONDS")
             .takes_value(true)
         )
         .arg(Arg::with_name("frequency")
-            .help("The sampling frequency. By default, this is 99 Hz.")
+            .help("The sampling frequency.")
             .short("f")
             .long("frequency")
             .value_name("HERTZ")
@@ -925,4 +925,4 @@ fn override_help() {
 
     assert!(m.is_ok());
     assert!(m.unwrap().is_present("help"));
-}
\ No newline at end of file
+}