-
Notifications
You must be signed in to change notification settings - Fork 12.7k
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
Add f32 and f64 examples warning #31918
Conversation
So, you put it this way because the examples are kinda random, right? Would it be better to pick one, and make all examples use it, and then only need the disclaimer for one of them? I'm not sure. |
I found it better this way because as long as examples are common for |
Right, but right now, in f32 it says "the examples are f64" and in f64 it says "the examples are f32". If they're common they should be just one type, no? Or maybe we're just agreeing and slightly misunderstanding each other :) |
Haha, I see your point. I rewrite it. :) |
e30fd99
to
c8deb47
Compare
@@ -488,6 +488,9 @@ mod prim_tuple { } | |||
/// | |||
/// *[See also the `std::f32` module](f32/index.html).* | |||
/// | |||
/// However, please note that examples are common for `f64` and `f32` |
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.
How about "please note that examples are shared between the f64
"...
One tiny wording tweak (for both, though I just left the comment on one) and then let's |
c8deb47
to
25c62eb
Compare
@bors: r+ rollup 🎊 ❤️ |
📌 Commit 25c62eb has been approved by |
r? @steveklabnik
Fixes #29334