docs(Completions): fixes some errors in the completion docs

This commit is contained in:
Kevin K 2016-07-01 12:26:20 -04:00
parent 18fc2e5b5a
commit 9b359bf062

View file

@ -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();