Skip to content

Commit

Permalink
Fix typo and style
Browse files Browse the repository at this point in the history
Add missing "the"; use "it would" instead of contraction "it'd".
  • Loading branch information
stomar committed Oct 31, 2019
1 parent 4ea0c91 commit 9b2ee12
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/tutorial/errors.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ to get up to speed.

## Unwrapping

Now, we were able to access content of the file,
Now, we were able to access the content of the file,
but we can't really do anything with it after the `match` block.
For this, we'll need to somehow deal with the error case.
The challenge is that all arms of a `match` block need to return something of the same type.
Expand Down Expand Up @@ -182,7 +182,7 @@ Error: Os { code: 2, kind: NotFound, message: "No such file or directory" }
```

In cases where your code doesn't literally contain the file name,
it'd be very hard to tell which file was `NotFound`.
it would be very hard to tell which file was `NotFound`.
There are multiple ways to deal with this.

For example, we can create our own error type,
Expand Down

0 comments on commit 9b2ee12

Please sign in to comment.