Skip to content

There may be an error in Chapter 9.2. #2829

@L4nterns

Description

@L4nterns

The following is the original content of the book:

As long as each error type implements the from function to define how to convert itself to the returned error type, the ? operator takes care of the conversion automatically.

I have consulted the following the following information:

https://doc.rust-lang.org/std/convert/trait.From.html

The from function should be implemented by the returned error type, not the "each error type", right?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions