diff --git a/src/app/mod.rs b/src/app/mod.rs index e70d7807..00f0f95f 100644 --- a/src/app/mod.rs +++ b/src/app/mod.rs @@ -960,7 +960,7 @@ impl<'a, 'b> App<'a, 'b> { /// /// use clap::{App, Arg, SubCommand}; /// - /// fn build_cli() -> App<'static, 'static> { + /// pub fn build_cli() -> App<'static, 'static> { /// App::new("compl") /// .about("Tests completions") /// .arg(Arg::with_name("file") @@ -980,7 +980,7 @@ impl<'a, 'b> App<'a, 'b> { /// ```ignore /// src/main.rs /// - /// use cli; + /// mod cli; /// /// fn main() { /// let m = cli::build_cli().get_matches();