-
Notifications
You must be signed in to change notification settings - Fork 12.8k
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
Write the 'primitive types' section of TRPL #24253
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
of these ones, as well, but these are the most primitive. | ||
|
||
|
||
# Unit, or `()` |
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.
I think that this type has actually been removed entirely from the language now and it's just the 0-element case of tuples, although I still think of it as a separate type kinda :)
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.
oh really? whoah
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.
Perhaps this could be a subsection of the tuples section? I think it's still pretty commonly referred to as "unit", but putting it by itself may be giving it too much prominence.
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.
ehhhh let's just drop it for now and see.
3929681
to
e32221a
Compare
A brief introduction to each type, with pointers to the primitive pages for more info.
e32221a
to
7bb0cd7
Compare
@alexcrichton updated! |
@bors: rollup |
…=alexcrichton A brief introduction to each type, with pointers to the primitive pages for more info.
…=alexcrichton A brief introduction to each type, with pointers to the primitive pages for more info.
…=alexcrichton A brief introduction to each type, with pointers to the primitive pages for more info.
…=alexcrichton A brief introduction to each type, with pointers to the primitive pages for more info.
…=alexcrichton A brief introduction to each type, with pointers to the primitive pages for more info.
…=alexcrichton A brief introduction to each type, with pointers to the primitive pages for more info.
…=alexcrichton A brief introduction to each type, with pointers to the primitive pages for more info.
…=alexcrichton A brief introduction to each type, with pointers to the primitive pages for more info.
…=alexcrichton A brief introduction to each type, with pointers to the primitive pages for more info.
A brief introduction to each type, with pointers to the primitive pages
for more info.