Fix yaml docs

This commit is contained in:
Daniel José Domingos Serrano 2019-10-25 18:53:17 +01:00 committed by Kevin K
parent 56d182d98b
commit 59c3233a45
No known key found for this signature in database
GPG key ID: 17218E4B3692F01A

View file

@ -350,7 +350,7 @@ use clap::App;
fn main() {
// The YAML file is found relative to the current file, similar to how modules are found
let yaml = load_yaml!("cli.yml");
let matches = App::from_yaml(yaml).get_matches();
let matches = App::from(yaml).get_matches();
// Same as previous examples...
}