]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in getopts::getopts documentation, return Matches instead of Opt
authorjoaoxsouls <joaoxsouls@gmail.com>
Mon, 28 Jul 2014 16:35:31 +0000 (17:35 +0100)
committerjoaoxsouls <joaoxsouls@gmail.com>
Mon, 28 Jul 2014 16:35:31 +0000 (17:35 +0100)
src/libgetopts/lib.rs

index 96b9a6a13923cf94e14baec68a516181fffaa799..922bf768854ea3d6c184015ea0feecc911e8353a 100644 (file)
@@ -529,7 +529,7 @@ fn fmt(&self, f: &mut fmt::Formatter) -> fmt::Result {
 
 /// 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.