Skip to content

Commit

Permalink
Merge pull request #219 from davidOSUL/master
Browse files Browse the repository at this point in the history
Clarify the limitation of ? in main and tests
  • Loading branch information
ehuss authored Oct 23, 2020
2 parents 2782ae5 + 90077f2 commit 23077a5
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,9 @@ fn main() -> Result<(), std::io::Error> {

In this case, if say the file doesn't exist and there is an `Err(err)` somewhere,
then `main` will exit with an error code (not `0`) and print out a `Debug`
representation of `err`.
representation of `err`. Note that this will always print out the `Debug` representation.
If you would like to, for example, print out the `Display` representation of `err`,
you will still have to do what you would in Rust 2015.

## More details

Expand Down

0 comments on commit 23077a5

Please sign in to comment.