Skip to content

Commit 22254c3

Browse files
committed
std: Fix typo in getopts doc attribute
1 parent e348567 commit 22254c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libstd/getopts.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@ Simple getopt alternative.
44
Construct a vector of options, either by using reqopt, optopt, and optflag or
55
by building them from components yourself, and pass them to getopts, along
66
with a vector of actual arguments (not including argv[0]). You'll either get a
7-
failure code back, or a match. You'll have to verify whether the amount of
7+
failure code back, or a match. You'll have to verify whether the amount of
88
'free' arguments in the match is what you expect. Use opt_* accessors to get
99
argument values out of the match object.
1010
1111
Single-character options are expected to appear on the command line with a
12-
single preceeding dash; multiple-character options are expected to be
12+
single preceding dash; multiple-character options are expected to be
1313
proceeded by two dashes. Options that expect an argument accept their argument
1414
following either a space or an equals sign.
1515

0 commit comments

Comments
 (0)