diff options
| author | mo8it <mo8it@proton.me> | 2024-06-26 15:36:14 +0200 |
|---|---|---|
| committer | mo8it <mo8it@proton.me> | 2024-06-26 15:36:14 +0200 |
| commit | 050a23ce6763fedf0906cd1c04b76888aae12f7d (patch) | |
| tree | 9f772aa14287410c4caa54e9facbfe8884246381 /rustlings-macros | |
| parent | 2afe6b38d3fe8d851b0d37f85c0d058388603127 (diff) | |
errors2 solution
Diffstat (limited to 'rustlings-macros')
| -rw-r--r-- | rustlings-macros/info.toml | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/rustlings-macros/info.toml b/rustlings-macros/info.toml index 3d8da58..2a4a24e 100644 --- a/rustlings-macros/info.toml +++ b/rustlings-macros/info.toml @@ -660,12 +660,11 @@ One way to handle this is using a `match` statement on `item_quantity.parse::<i32>()` where the cases are `Ok(something)` and `Err(something)`. -This pattern is very common in Rust, though, so there's a `?` operator that +This pattern is very common in Rust, though, so there's the `?` operator that does pretty much what you would make that match statement do for you! -Take a look at this section of the 'Error Handling' chapter: -https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html#a-shortcut-for-propagating-errors-the--operator -and give it a try!""" +Take a look at this section of the "Error Handling" chapter: +https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html#a-shortcut-for-propagating-errors-the--operator""" [[exercises]] name = "errors3" |
