Skip to content

Commit ab93a51

Browse files
committed
Point to From trait in error handling guide
Not sure if `From<Error>` is the correct way to reference that trait (maybe `From<E: Error>`?)
1 parent f55e66a commit ab93a51

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/doc/trpl/error-handling.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -297,5 +297,5 @@ It's worth noting that you can only use `try!` from a function that returns a
297297
`Result`, which means that you cannot use `try!` inside of `main()`, because
298298
`main()` doesn't return anything.
299299

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

0 commit comments

Comments
 (0)