Skip to content

Commit c67de25

Browse files
committed
Add notice about using new consts in new code on float modules
1 parent 847a0dd commit c67de25

File tree

5 files changed

+14
-2
lines changed

5 files changed

+14
-2
lines changed

src/libcore/num/f32.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//! *[See also the `f32` primitive type](../../std/primitive.f32.html).*
55
//!
66
//! Mathematically significant numbers are provided in the `consts` sub-module.
7+
//!
8+
//! Although using these constants won’t cause compilation warnings,
9+
//! new code should use the associated constants directly on the primitive type.
710
811
#![stable(feature = "rust1", since = "1.0.0")]
912

src/libcore/num/f64.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//! *[See also the `f64` primitive type](../../std/primitive.f64.html).*
55
//!
66
//! Mathematically significant numbers are provided in the `consts` sub-module.
7+
//!
8+
//! Although using these constants won’t cause compilation warnings,
9+
//! new code should use the associated constants directly on the primitive type.
710
811
#![stable(feature = "rust1", since = "1.0.0")]
912

src/libstd/f32.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//! *[See also the `f32` primitive type](../../std/primitive.f32.html).*
55
//!
66
//! Mathematically significant numbers are provided in the `consts` sub-module.
7+
//!
8+
//! Although using these constants won’t cause compilation warnings,
9+
//! new code should use the associated constants directly on the primitive type.
710
811
#![stable(feature = "rust1", since = "1.0.0")]
912
#![allow(missing_docs)]

src/libstd/f64.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
//! *[See also the `f64` primitive type](../../std/primitive.f64.html).*
55
//!
66
//! Mathematically significant numbers are provided in the `consts` sub-module.
7+
//!
8+
//! Although using these constants won’t cause compilation warnings,
9+
//! new code should use the associated constants directly on the primitive type.
710
811
#![stable(feature = "rust1", since = "1.0.0")]
912
#![allow(missing_docs)]

src/libstd/primitive_docs.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -771,7 +771,7 @@ mod prim_tuple {}
771771
#[doc(primitive = "f32")]
772772
/// The 32-bit floating point type.
773773
///
774-
/// *[See also the `std::f32` module](f32/index.html).*
774+
/// *[See also the `std::f32::consts` module](f32/consts/index.html).*
775775
///
776776
#[stable(feature = "rust1", since = "1.0.0")]
777777
mod prim_f32 {}
@@ -780,7 +780,7 @@ mod prim_f32 {}
780780
//
781781
/// The 64-bit floating point type.
782782
///
783-
/// *[See also the `std::f64` module](f64/index.html).*
783+
/// *[See also the `std::f64::consts` module](f64/consts/index.html).*
784784
///
785785
#[stable(feature = "rust1", since = "1.0.0")]
786786
mod prim_f64 {}

0 commit comments

Comments
 (0)