mirror of
https://github.com/rust-lang/rust.git
synced 2025-05-14 02:49:40 +00:00
Add notice about using new consts in new code on float modules
This commit is contained in:
parent
847a0dd845
commit
c67de2570f
@ -4,6 +4,9 @@
|
||||
//! *[See also the `f32` primitive type](../../std/primitive.f32.html).*
|
||||
//!
|
||||
//! Mathematically significant numbers are provided in the `consts` sub-module.
|
||||
//!
|
||||
//! Although using these constants won’t cause compilation warnings,
|
||||
//! new code should use the associated constants directly on the primitive type.
|
||||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
|
@ -4,6 +4,9 @@
|
||||
//! *[See also the `f64` primitive type](../../std/primitive.f64.html).*
|
||||
//!
|
||||
//! Mathematically significant numbers are provided in the `consts` sub-module.
|
||||
//!
|
||||
//! Although using these constants won’t cause compilation warnings,
|
||||
//! new code should use the associated constants directly on the primitive type.
|
||||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
|
||||
|
@ -4,6 +4,9 @@
|
||||
//! *[See also the `f32` primitive type](../../std/primitive.f32.html).*
|
||||
//!
|
||||
//! Mathematically significant numbers are provided in the `consts` sub-module.
|
||||
//!
|
||||
//! Although using these constants won’t cause compilation warnings,
|
||||
//! new code should use the associated constants directly on the primitive type.
|
||||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
#![allow(missing_docs)]
|
||||
|
@ -4,6 +4,9 @@
|
||||
//! *[See also the `f64` primitive type](../../std/primitive.f64.html).*
|
||||
//!
|
||||
//! Mathematically significant numbers are provided in the `consts` sub-module.
|
||||
//!
|
||||
//! Although using these constants won’t cause compilation warnings,
|
||||
//! new code should use the associated constants directly on the primitive type.
|
||||
|
||||
#![stable(feature = "rust1", since = "1.0.0")]
|
||||
#![allow(missing_docs)]
|
||||
|
@ -771,7 +771,7 @@ mod prim_tuple {}
|
||||
#[doc(primitive = "f32")]
|
||||
/// The 32-bit floating point type.
|
||||
///
|
||||
/// *[See also the `std::f32` module](f32/index.html).*
|
||||
/// *[See also the `std::f32::consts` module](f32/consts/index.html).*
|
||||
///
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
mod prim_f32 {}
|
||||
@ -780,7 +780,7 @@ mod prim_f32 {}
|
||||
//
|
||||
/// The 64-bit floating point type.
|
||||
///
|
||||
/// *[See also the `std::f64` module](f64/index.html).*
|
||||
/// *[See also the `std::f64::consts` module](f64/consts/index.html).*
|
||||
///
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
mod prim_f64 {}
|
||||
|
Loading…
Reference in New Issue
Block a user