Skip to content

Commit ef96b54

Browse files
author
joaoxsouls
committed
Fix typo in getopts::getopts documentation, return Matches instead of Opt
1 parent 79e9f14 commit ef96b54

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libgetopts/lib.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -529,7 +529,7 @@ impl fmt::Show for Fail_ {
529529

530530
/// Parse command line arguments according to the provided options.
531531
///
532-
/// On success returns `Ok(Opt)`. Use methods such as `opt_present`
532+
/// On success returns `Ok(Matches)`. Use methods such as `opt_present`
533533
/// `opt_str`, etc. to interrogate results. Returns `Err(Fail_)` on
534534
/// failure: use the `Show` implementation of `Fail_` to display
535535
/// information about it.

0 commit comments

Comments
 (0)