-
Notifications
You must be signed in to change notification settings - Fork 13.4k
replace Neg
example with something more evocative of negation
#35830
New issue
Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? # to your account
Conversation
(rust_highfive has picked a reviewer for you, use r? to override) |
@@ -470,26 +470,37 @@ rem_impl_float! { f32 f64 } | |||
/// | |||
/// # Examples | |||
/// | |||
/// A trivial implementation of `Neg`. When `-Foo` happens, it ends up calling | |||
/// `neg`, and therefore, `main` prints `Negating!`. | |||
/// An implementation of `Neg` for `Sign`, which allows the use of `-` to |
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.
comma might be incorrect 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.
I don't believe so. It's a non-restrictive which clause.
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.
Correction: the comma might be unnecessary, not strictly incorrect.
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 like how relevant your avatar is for this PR, given that it's a cyclic set of invertible elements. :P
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 stand by the necessity of this comma (Strunk & White II.3), but I certainly won't fight to the death over it. I'm happy to remove it if it truly feels awkward to read.
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 would put the comma here, but I also tend to use commas a lot more than most people.
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.
no no, you have convinced me. not that you needed to 😄
These examples are far clearer. Thanks |
@bors: r+ rollup thanks! |
📌 Commit c0eccb1 has been approved by |
…klabnik replace `Neg` example with something more evocative of negation
…klabnik replace `Neg` example with something more evocative of negation
…klabnik replace `Neg` example with something more evocative of negation
No description provided.