Skip to content

Commit 2a47fa7

Browse files
committed
auto merge of #16252 : conradkleinespel/rust/master, r=alexcrichton
I found the current docs to be a little confusing. I believe this makes them straight to the point and less confusing.
2 parents f5ac411 + c74d320 commit 2a47fa7

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)