Skip to content

Obsolete text in documentation about main and Result #51572

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

Closed
Sgeo opened this issue Jun 15, 2018 · 2 comments
Closed

Obsolete text in documentation about main and Result #51572

Sgeo opened this issue Jun 15, 2018 · 2 comments
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@Sgeo
Copy link
Contributor

Sgeo commented Jun 15, 2018

Note that you cannot use the ? operator in functions that do not return a Result<T, E> (e.g. main).

https://doc.rust-lang.org/std/io/index.html

@steveklabnik steveklabnik added A-allocators Area: Custom and system allocators A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools and removed A-allocators Area: Custom and system allocators labels Jun 15, 2018
@hellow554
Copy link
Contributor

Make PR that will remove that sentence ;)

@frewsxcv
Copy link
Member

Fixed in #51644

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools
Projects
None yet
Development

No branches or pull requests

4 participants