Skip to content
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

Document bool cast semantics #34729

Closed
porglezomp opened this issue Jul 9, 2016 · 2 comments
Closed

Document bool cast semantics #34729

porglezomp opened this issue Jul 9, 2016 · 2 comments
Labels
A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools

Comments

@porglezomp
Copy link
Contributor

After a short debate on the IRC over whether true as i32 is guaranteed to be 1, and false as i32 is guaranteed to be 0, I think that the semantics section on casts should explicitly describe what a bool as integer_type cast does.

@sfackler sfackler added the A-docs label Jul 9, 2016
@est31
Copy link
Member

est31 commented Jul 9, 2016

The reference indirectly documents the representation, but the machine types section would deserve documentation of the bool type as well.

@steveklabnik steveklabnik added the A-docs Area: Documentation for any part of the project, including the compiler, standard library, and tools label Mar 10, 2017
@steveklabnik
Copy link
Member

The reference lives in its own repo, so I have moved this there: rust-lang/reference#20 Thanks!

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