Reword to avoid a/an where pronunciation is unclear

This commit is contained in:
Carol (Nichols || Goulding)
2024-08-13 13:45:42 -04:00
committed by Carol (Nichols || Goulding)
parent 8880eacd33
commit bffbeb1102
2 changed files with 3 additions and 2 deletions

View File

@@ -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 files contents.
that file, and returns a value of type `std::io::Result<String>` that contains
the files 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

View File

@@ -270,7 +270,7 @@ well, which well 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.
Weve made two changes in the body of the function: instead of calling `panic!`