Skip to content

Commit 7913f56

Browse files
committed
rollup merge of rust-lang#24401: fenduru/patch-2
Not sure if `From<Error>` is the correct way to reference that trait (maybe `From<E: Error>`?) r? @steveklabnik
2 parents 33733b7 + ab93a51 commit 7913f56

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)