Skip to content

Commit c74d320

Browse files
libgetopts: tweak HasHarg/Occur docs.
1 parent efe1f7e commit c74d320

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

src/libgetopts/lib.rs

+4-4
Original file line numberDiff line numberDiff line change
@@ -115,9 +115,9 @@ pub enum Name {
115115
pub enum HasArg {
116116
/// The option requires an argument.
117117
Yes,
118-
/// The option is just a flag, therefore no argument.
118+
/// The option takes no argument.
119119
No,
120-
/// The option argument is optional and it could or not exist.
120+
/// The option argument is optional.
121121
Maybe,
122122
}
123123

@@ -126,9 +126,9 @@ pub enum HasArg {
126126
pub enum Occur {
127127
/// The option occurs once.
128128
Req,
129-
/// The option could or not occur.
129+
/// The option occurs at most once.
130130
Optional,
131-
/// The option occurs once or multiple times.
131+
/// The option occurs zero or more times.
132132
Multi,
133133
}
134134

0 commit comments

Comments
 (0)