You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
the text of this section doesn't match the current capabilities of Rust, or but the displayed error message is correct (maybe the example errors are auto-generated):
The text was updated successfully, but these errors were encountered:
eddyp
added a commit
to upstreaming/trpl-book
that referenced
this issue
Nov 25, 2019
? can be used for Option or Result since 1.22 (see blog post)
Documentation in the book says "The ? Operator Can Only Be Used in Functions That Return Result" -- see https://doc.rust-lang.org/book/ch09-02-recoverable-errors-with-result.html#recoverable-errors-with-result
the text of this section doesn't match the current capabilities of Rust, or but the displayed error message is correct (maybe the example errors are auto-generated):
The text was updated successfully, but these errors were encountered: