Skip to content

Commit

Permalink
Point to From trait in error handling guide
Browse files Browse the repository at this point in the history
Not sure if `From<Error>` is the correct way to reference that trait (maybe `From<E: Error>`?)
  • Loading branch information
fenduru committed Apr 14, 2015
1 parent f55e66a commit ab93a51
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/doc/trpl/error-handling.md
Expand Up @@ -297,5 +297,5 @@ It's worth noting that you can only use `try!` from a function that returns a
`Result`, which means that you cannot use `try!` inside of `main()`, because
`main()` doesn't return anything.

`try!` makes use of [`FromError`](../std/error/#the-fromerror-trait) to determine
`try!` makes use of [`From<Error>`](../std/convert/trait.From.hml) to determine
what to return in the error case.

0 comments on commit ab93a51

Please sign in to comment.