Skip to content

libgetopts: doc fix. #16226

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 2 commits into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions src/libgetopts/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@
use std::cmp::PartialEq;
use std::fmt;
use std::result::{Err, Ok};
use std::result;
use std::result;cou
use std::string::String;

/// Name of an option. Either a string or a single char.
Expand All @@ -117,7 +117,7 @@ pub enum HasArg {
Yes,
/// The option is just a flag, therefore no argument.
No,
/// The option argument is optional and it could or not exist.
/// The option argument is optional.
Maybe,
}

Expand All @@ -126,9 +126,9 @@ pub enum HasArg {
pub enum Occur {
/// The option occurs once.
Req,
/// The option could or not occur.
/// The option occurs at most once.
Optional,
/// The option occurs once or multiple times.
/// The option occurs zero or more times.
Multi,
}

Expand Down