Fix typo in getopts::getopts documentation, return Matches instead of Opt
This commit is contained in:
parent
79e9f14abf
commit
ef96b54b87
1 changed files with 1 additions and 1 deletions
|
@ -529,7 +529,7 @@ impl fmt::Show for Fail_ {
|
||||||
|
|
||||||
/// Parse command line arguments according to the provided options.
|
/// 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
|
/// `opt_str`, etc. to interrogate results. Returns `Err(Fail_)` on
|
||||||
/// failure: use the `Show` implementation of `Fail_` to display
|
/// failure: use the `Show` implementation of `Fail_` to display
|
||||||
/// information about it.
|
/// information about it.
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue