Fixed error in doc test

This commit is contained in:
Kevin K 2015-03-16 14:53:49 -04:00
parent bc94d11b03
commit eabfa091bc
3 changed files with 2 additions and 3 deletions

View file

@ -298,7 +298,6 @@ impl App {
/// .index(1) /// .index(1)
/// .help("Configuration file to use"))) /// .help("Configuration file to use")))
/// // Additional subcommand configuration goes here, such as arguments... /// // Additional subcommand configuration goes here, such as arguments...
/// )
/// # .get_matches(); /// # .get_matches();
/// ``` /// ```
pub fn subcommand(mut self, subcmd: App) -> App { pub fn subcommand(mut self, subcmd: App) -> App {

View file

@ -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 //! 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. //! determine the functioning of your program.
//! //!
//! # Example //! Example:
//! //!
//! ```no_run //! ```no_run
//! use clap::{Arg, App, SubCommand}; //! use clap::{Arg, App, SubCommand};