Skip to content

Commit

Permalink
Reword to avoid a/an where pronunciation is unclear
Browse files Browse the repository at this point in the history
  • Loading branch information
carols10cents committed Aug 14, 2024
1 parent 8880eac commit bffbeb1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion src/ch12-02-reading-a-file.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,8 @@ First we bring in a relevant part of the standard library with a `use`
statement: we need `std::fs` to handle files.

In `main`, the new statement `fs::read_to_string` takes the `file_path`, opens
that file, and returns a `std::io::Result<String>` of the file’s contents.
that file, and returns a value of type `std::io::Result<String>` that contains
the file’s contents.

After that, we again add a temporary `println!` statement that prints the value
of `contents` after the file is read, so we can check that the program is
Expand Down
2 changes: 1 addition & 1 deletion src/ch12-03-improving-error-handling-and-modularity.md
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ well, which we’ll do in the next listing.
</Listing>

Our `build` function returns a `Result` with a `Config` instance in the success
case and a `&'static str` in the error case. Our error values will always be
case and a string literal in the error case. Our error values will always be
string literals that have the `'static` lifetime.

We’ve made two changes in the body of the function: instead of calling `panic!`
Expand Down

0 comments on commit bffbeb1

Please sign in to comment.