-
Notifications
You must be signed in to change notification settings - Fork 1.4k
Return Result from main function. #1108
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
fix typo please
src/error/result.md
Outdated
@@ -45,6 +45,39 @@ unpleasant error message. | |||
To improve the quality of our error message, we should be more specific | |||
about the return type and consider explicitly handling the error. | |||
|
|||
## Using `Result` in `main` | |||
|
|||
The `Result` type can also be the return type of of the `main` function if |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
type of of
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Bugger did it again 😞
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
looks great, thanks!
Hopefully what we are looking for to cover #1062