mirror of https://github.com/rust-lang/book
Fix more `openings`
This commit is contained in:
parent
4c67f8ec4a
commit
222b9b8b81
|
@ -19,8 +19,8 @@ it will be to keep track of the purpose of each. It’s best to group the
|
|||
configuration variables into one structure to make their purpose clear.
|
||||
|
||||
The third problem is that we’ve used `expect` to print an error message when
|
||||
opening the file fails, but the error message just prints
|
||||
`something went wrong`. Opening a file can fail in a number of ways: for
|
||||
reading the file fails, but the error message just prints
|
||||
`something went wrong`. Reading a file can fail in a number of ways: for
|
||||
example, the file could be missing, or we might not have permission to open
|
||||
it. Right now, regardless of the situation, we’d print the
|
||||
`something went wrong` error message, which wouldn't give the user any
|
||||
|
|
Loading…
Reference in New Issue