-
Notifications
You must be signed in to change notification settings - Fork 13.3k
reference.md: clarify negation. #31664
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) |
@@ -2752,7 +2756,9 @@ Rust defines the following unary operators. They are all written as prefix opera | |||
before the expression they apply to. | |||
|
|||
* `-` | |||
: Negation. May only be applied to numeric types. | |||
: Negation. Signed integer types and floating-point types support negation. It | |||
is an error to apply negation to unsigned types; for example, compiler |
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.
You'd probably want to say "the compiler" here.
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.
yup!
Just that one minor note, otherwise looks good here. |
b479313
to
9dab85e
Compare
Signed-off-by: NODA, Kai <[email protected]>
9dab85e
to
559683c
Compare
Thanks for the comments, fixed it |
It would be great if someone could check my English.
It would be great if someone could check my English.