Skip to content

Commit 58fed89

Browse files
committed
Rollup merge of #29207 - ykomatsu:trpl, r=steveklabnik
2 parents 94326e1 + f609d17 commit 58fed89

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/doc/trpl/error-handling.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1545,7 +1545,7 @@ cargo build --release
15451545

15461546
## Argument parsing
15471547

1548-
Let's get argument parsing out of the way. we won't go into too much
1548+
Let's get argument parsing out of the way. We won't go into too much
15491549
detail on Getopts, but there is [some good documentation][15]
15501550
describing it. The short story is that Getopts generates an argument
15511551
parser and a help message from a vector of options (The fact that it
@@ -1855,7 +1855,7 @@ In our program, we accept a single file for input and do one pass over the
18551855
data. This means we probably should be able to accept input on stdin. But maybe
18561856
we like the current format too—so let's have both!
18571857

1858-
Adding support for stdin is actually quite easy. There are only two things we
1858+
Adding support for stdin is actually quite easy. There are only three things we
18591859
have to do:
18601860

18611861
1. Tweak the program arguments so that a single parameter—the
@@ -2057,7 +2057,7 @@ so. This can be a little clumsy, especially if you intend for the program to
20572057
be used in shell scripts.
20582058

20592059
So let's start by adding the flags. Like before, we need to tweak the usage
2060-
string and add a flag to the Option variable. Once were done that, Getopts does the rest:
2060+
string and add a flag to the Option variable. Once we've done that, Getopts does the rest:
20612061

20622062
```rust,ignore
20632063
...

0 commit comments

Comments
 (0)