1
0
Fork 0
mirror of https://github.com/notohh/rustlings.git synced 2025-07-24 14:30:06 -04:00

docs(exercises): updated all exercises readme files

all exercises readme files now have a unified structure and a description
This commit is contained in:
Zerotask 2021-04-23 19:54:31 +02:00
commit 249ad44cc0
No known key found for this signature in database
GPG key ID: 1C87F67E23FCB283
20 changed files with 85 additions and 54 deletions
exercises/error_handling

View file

@ -1,11 +1,11 @@
For this exercise check out the sections:
# Error handling
Most errors arent serious enough to require the program to stop entirely.
Sometimes, when a function fails, its for a reason that you can easily interpret and respond to.
For example, if you try to open a file and that operation fails because the file doesnt exist, you might want to create the file instead of terminating the process.
## Further information
- [Error Handling](https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html)
- [Generics](https://doc.rust-lang.org/book/ch10-01-syntax.html)
of the Rust Book.
or alternatively, check out the sections:
- [Result](https://doc.rust-lang.org/rust-by-example/error/result.html)
- [Boxing errors](https://doc.rust-lang.org/rust-by-example/error/multiple_error_types/boxing_errors.html)
of the Rust By Example Book.