Repository navigation
Slightly improve docs of intrinsics - #166296
BioTomateDE wants to merge 3 commits into
Conversation
|
Thanks for the pull request, and welcome! The Rust Project has assigned @Mark-Simulacrum (or someone else) to review your changes, you should hear from them (or someone else) within the next two weeks. Please see the contribution instructions and our LLM policy for more information. Why was this reviewer chosen?The reviewer was selected based on:
|
|
r? @thomcc |
| ) -> T; | ||
|
|
||
| /// Subtract from the current value, returning the previous value. | ||
| /// Subtracts from the current value, returning the previous value. |
There was a problem hiding this comment.
Are we really consistent about that in the entire standard library?
If not, IMO it's not worth changing here.
There was a problem hiding this comment.
Apparently we're consistent about it throughout the rest of the intrinsics. I'm not sure I feel strongly about it, though.
There was a problem hiding this comment.
sooo whats the plan here? should i revert it? normalize every docstring here to imperative form? keep it?
Normalized docstrings to be have a period at the end of the sentence and use the
-sform of the verb.Fixed typo
Iseinstead ofUsein comment.Added newlines between intrinsic definitions.
Replaced "This intrinsic does not have a stable counterpart." with "The to-be-stabilized version of this intrinsic is [...]." for
likelyandunlikely.Also added the text in the parens for
const_allocatedocs:This change might be slightly controversial, feel free to remove it if you want.
Note: PR split from #166295