-
Notifications
You must be signed in to change notification settings - Fork 13.2k
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
Instant/SystemTime doc: add meaning to first line #30591
Conversation
The first line (paragraph?) of a doc-comment is what rustdoc shows when listing items of a module. What makes `Instant` and `SystemTime` different is important enough to be there. (Though feel free to bikeshed the wording.)
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @aturon (or someone else) soon. If any changes to this PR are deemed necessary, please add them as extra commits. This ensures that the reviewer can see what has changed since they last reviewed the code. Due to the way GitHub handles out-of-date commits, this should also make it reasonably obvious what issues have or haven't been addressed. Large or tricky changes may require several passes of review and changes. Please see the contribution instructions for more information. |
The focus on 'process' here may be confusing since the differences aren't explained in the main text in terms of processes. |
Fair point, though I think the difference I’m trying to underline is implicit in the current main text. ( |
The point you are making about processes isn't clear to me regardless of the terminology - I don't draw the same implicit conclusion from reading the description. The implications for processes seems to me a secondary attribute of the behavior of these types, not the main thing about them, suitable for the short description. If there are implications for how these types interact with processes I would expect that be explained more clearly in the text as an elaboration. |
I agree with @brson. Perhaps for |
Ok, let’s forget the phrasing in this PR. What prompted it for me is looking at http://doc.rust-lang.org/nightly/std/time/ , where only the first paragraph of the doc of each item is shown. From these first paragraphs, I read that
(Unless someone is tempted to parse This means that |
cc @wycats -- I'm sure you have thoughts here. |
@SimonSapin OK, everything you're saying makes sense to me. Spitballing:
|
Looks good to me. Thanks! |
I like the direction this is going now. |
… per aturon’s proposal.
PR updated with @aturon’s wording. |
@bors: r+ rollup |
📌 Commit 8e2b4b2 has been approved by |
The first line (paragraph?) of a doc-comment is what rustdoc shows when listing items of a module. What makes `Instant` and `SystemTime` different is important enough to be there. (Though feel free to bikeshed the wording.)
The first line (paragraph?) of a doc-comment is what rustdoc shows when listing items of a module.
What makes
Instant
andSystemTime
different is important enough to be there. (Though feel free to bikeshed the wording.)