mirror of
https://github.com/notohh/rustlings.git
synced 2024-12-23 11:48:09 -05:00
Merge pull request #1212 from Tostapunk/fix/errors-patch1
fix: Fix typo in errors5 hint
This commit is contained in:
commit
2e33d422a5
1 changed files with 1 additions and 1 deletions
|
@ -627,7 +627,7 @@ propagated using `?` operators. How do we declare a return type from `main()` th
|
||||||
|
|
||||||
Under the hood, the `?` operator calls `From::from` on the error value to convert it to a boxed
|
Under the hood, the `?` operator calls `From::from` on the error value to convert it to a boxed
|
||||||
trait object, a `Box<dyn error::Error>`. This boxed trait object is polymorphic, and since all
|
trait object, a `Box<dyn error::Error>`. This boxed trait object is polymorphic, and since all
|
||||||
errors implement the `error:Error` trait, we can capture lots of different errors in one "Box"
|
errors implement the `error::Error` trait, we can capture lots of different errors in one "Box"
|
||||||
object.
|
object.
|
||||||
|
|
||||||
Check out this section of the book:
|
Check out this section of the book:
|
||||||
|
|
Loading…
Reference in a new issue