This commit is contained in:
Harald Hoyer 2018-12-20 16:36:04 +01:00
parent 4d2d807332
commit fe73f84b85

View file

@ -2,7 +2,8 @@
The most simplest of doing error handling in rust is by returning `String` as a `Box<Error>`. The most simplest of doing error handling in rust is by returning `String` as a `Box<Error>`.
As you can see by running the example, this only prints out the last `Error`. As you can see by running the example (the "Play" button in upper right of the code block), this only
prints out the last `Error`.
If the rust `main` function returns an Err(), this Err() will be displayed with `std::fmt::Debug`. If the rust `main` function returns an Err(), this Err() will be displayed with `std::fmt::Debug`.