auto merge of #16050 : jxs/rust/master, r=alexcrichton
getopts returns Matches not Opt
This commit is contained in:
commit
72e2c7dec3
@ -529,7 +529,7 @@ impl fmt::Show for Fail_ {
|
||||
|
||||
/// Parse command line arguments according to the provided options.
|
||||
///
|
||||
/// On success returns `Ok(Opt)`. Use methods such as `opt_present`
|
||||
/// On success returns `Ok(Matches)`. Use methods such as `opt_present`
|
||||
/// `opt_str`, etc. to interrogate results. Returns `Err(Fail_)` on
|
||||
/// failure: use the `Show` implementation of `Fail_` to display
|
||||
/// information about it.
|
||||
|
Loading…
x
Reference in New Issue
Block a user