-
Notifications
You must be signed in to change notification settings - Fork 13k
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
Improve module description for std::f32 and std::f64 #41122
Conversation
Thanks for the pull request, and welcome! The Rust team is excited to review your changes, and you should hear from @BurntSushi (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. |
@palango Thanks! I'm not quite sure the docs here are enough to satisfy #29329. It might be worth saying more about the distinction of constants defined in cc @steveklabnik @rust-lang/libs |
src/libstd/f32.rs
Outdated
//! This module provides access to properties and bounds of the 32-bit | ||
//! floating point data type. | ||
//! Mathematical constants are provided in the | ||
//! [`consts`](../f32/consts) module. |
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 this URL should just be:
...provided in the [`consts`][consts] module.
or better yet:
...provided in the [`consts`] module.
[`consts`]: consts
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.
Thanks for the hint.
6fcc83e
to
66861b1
Compare
@BurntSushi Thanks for your comments. I updated the description and think it's clearer now. |
37ed317
to
5d6f4f7
Compare
Ok, I need some tips for getting the links to work. If the link is done with
If I use
|
Ah, this is an example where linking doesn't always work. It looks like these links get rendered on different pages that live at different levels of the URL hierarchy. We're working on fixing this and making this easier in the future. Sorry for the confusion here, you can just remove the links for now @palango. Thanks for being patient! :) |
5d6f4f7
to
4b4b1e1
Compare
Thanks! @bors r+ rollup |
📌 Commit 4b4b1e1 has been approved by |
Improve module description for std::f32 and std::f64 Fixes #29353, see discussion there.
☀️ Test successful - status-appveyor, status-travis |
Fixes #29353, see discussion there.