mirror of
https://github.com/clap-rs/clap
synced 2024-12-13 22:32:33 +00:00
docs(Completions): fixes some errors in the completion docs
This commit is contained in:
parent
18fc2e5b5a
commit
9b359bf062
1 changed files with 2 additions and 2 deletions
|
@ -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();
|
||||
|
|
Loading…
Reference in a new issue