rollup merge of #24401: fenduru/patch-2
Not sure if `From<Error>` is the correct way to reference that trait (maybe `From<E: Error>`?) r? @steveklabnik
This commit is contained in:
commit
7913f5659d
1 changed files with 1 additions and 1 deletions
|
@ -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.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue