diff options
| author | fenduru <fenduru@users.noreply.github.com> | 2015-04-13 22:01:20 -0400 |
|---|---|---|
| committer | fenduru <fenduru@users.noreply.github.com> | 2015-04-13 22:01:20 -0400 |
| commit | ab93a51068c39773dce857d3eae054edb36a6fa2 (patch) | |
| tree | 2186b0ae81105b37904c7dcd157874d1a965e422 | |
| parent | f55e66aaed42589dcda0221a4545dbaaec68e577 (diff) | |
| download | rust-ab93a51068c39773dce857d3eae054edb36a6fa2.tar.gz rust-ab93a51068c39773dce857d3eae054edb36a6fa2.zip | |
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>`?)
| -rw-r--r-- | src/doc/trpl/error-handling.md | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/doc/trpl/error-handling.md b/src/doc/trpl/error-handling.md index b9e7bd78c5b..491f7b0c2a0 100644 --- a/src/doc/trpl/error-handling.md +++ b/src/doc/trpl/error-handling.md @@ -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. |
