From 25c62ebfdd53c3a41c5bd55b1dd3a5515d107f21 Mon Sep 17 00:00:00 2001 From: Guillaume Gomez Date: Fri, 26 Feb 2016 19:46:00 +0100 Subject: [PATCH] Add f32 and f64 examples warning --- src/libstd/primitive_docs.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/libstd/primitive_docs.rs b/src/libstd/primitive_docs.rs index e5819522123c4..839287d13217b 100644 --- a/src/libstd/primitive_docs.rs +++ b/src/libstd/primitive_docs.rs @@ -488,6 +488,9 @@ mod prim_tuple { } /// /// *[See also the `std::f32` module](f32/index.html).* /// +/// However, please note that examples are shared between the `f64` and `f32` +/// primitive types. So it's normal if you see usage of `f64` in there. +/// mod prim_f32 { } #[doc(primitive = "f64")] @@ -496,6 +499,9 @@ mod prim_f32 { } /// /// *[See also the `std::f64` module](f64/index.html).* /// +/// However, please note that examples are shared between the `f64` and `f32` +/// primitive types. So it's normal if you see usage of `f32` in there. +/// mod prim_f64 { } #[doc(primitive = "i8")]