Skip to content

Commit 25c62eb

Browse files
Add f32 and f64 examples warning
1 parent 1aa6ac3 commit 25c62eb

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/libstd/primitive_docs.rs

+6
Original file line numberDiff line numberDiff line change
@@ -488,6 +488,9 @@ mod prim_tuple { }
488488
///
489489
/// *[See also the `std::f32` module](f32/index.html).*
490490
///
491+
/// However, please note that examples are shared between the `f64` and `f32`
492+
/// primitive types. So it's normal if you see usage of `f64` in there.
493+
///
491494
mod prim_f32 { }
492495

493496
#[doc(primitive = "f64")]
@@ -496,6 +499,9 @@ mod prim_f32 { }
496499
///
497500
/// *[See also the `std::f64` module](f64/index.html).*
498501
///
502+
/// However, please note that examples are shared between the `f64` and `f32`
503+
/// primitive types. So it's normal if you see usage of `f32` in there.
504+
///
499505
mod prim_f64 { }
500506

501507
#[doc(primitive = "i8")]

0 commit comments

Comments
 (0)