diff --git a/src/app.rs b/src/app.rs index 6acfd15d..5c4ab3cd 100644 --- a/src/app.rs +++ b/src/app.rs @@ -298,7 +298,6 @@ impl App { /// .index(1) /// .help("Configuration file to use"))) /// // Additional subcommand configuration goes here, such as arguments... - /// ) /// # .get_matches(); /// ``` pub fn subcommand(mut self, subcmd: App) -> App { diff --git a/src/lib.rs b/src/lib.rs index da49d6de..9266eadc 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -14,7 +14,7 @@ //! After defining a list of possible valid arguments you get a list of matches that the user supplied at runtime. You can then use this list to //! determine the functioning of your program. //! -//! # Example +//! Example: //! //! ```no_run //! use clap::{Arg, App, SubCommand}; diff --git a/src/subcommand.rs b/src/subcommand.rs index 4502acae..7ef1e94e 100644 --- a/src/subcommand.rs +++ b/src/subcommand.rs @@ -13,7 +13,7 @@ use argmatches::ArgMatches; /// ```no_run /// # use clap::{App, Arg, SubCommand}; /// # let matches = App::new("myprog") -/// # .subcommand( +/// # .subcommand( /// SubCommand::new("conifg") /// .about("Used for configuration") /// .arg(Arg::new("config_file")