Skip to content

Commit

Permalink
Fix some typos in TRPL
Browse files Browse the repository at this point in the history
  • Loading branch information
ykomatsu committed Oct 21, 2015
1 parent 26c14a4 commit 55796c0
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/doc/trpl/error-handling.md
Expand Up @@ -1545,7 +1545,7 @@ cargo build --release

## Argument parsing

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

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

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

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

```rust,ignore
...
Expand Down

0 comments on commit 55796c0

Please sign in to comment.