mirror of
https://github.com/clap-rs/clap
synced 2024-12-14 06:42:33 +00:00
Merge pull request #3161 from DerZade/master
docs: Fix copy paste error in example
This commit is contained in:
commit
36313b779f
1 changed files with 1 additions and 1 deletions
|
@ -12,6 +12,6 @@ fn main() {
|
|||
// Note, it's safe to call unwrap() because the arg is required
|
||||
let port: usize = matches
|
||||
.value_of_t("PORT")
|
||||
.expect("'MODE' is required and parsing will fail if its missing");
|
||||
.expect("'PORT' is required and parsing will fail if its missing");
|
||||
println!("PORT = {}", port);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue