diff options
| author | kennytm <kennytm@gmail.com> | 2017-12-26 15:18:56 +0800 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-12-26 15:18:56 +0800 |
| commit | 0ca5ce26ba7f918261e9d9dc07f3ec4c2f5c6201 (patch) | |
| tree | f780bd4cba1149a435dcf2643314f1072db8bcd6 | |
| parent | ba3997237807446b628efee112589040dda39e84 (diff) | |
| parent | ebdd667d4083bae7aadebd8b56856fd2a30d9f1c (diff) | |
| download | rust-0ca5ce26ba7f918261e9d9dc07f3ec4c2f5c6201.tar.gz rust-0ca5ce26ba7f918261e9d9dc07f3ec4c2f5c6201.zip | |
Rollup merge of #46933 - clarcharr:float_docs, r=steveklabnik
Make core::f32/f64 docs match std. For some reason these weren't in sync.
| -rw-r--r-- | src/libcore/num/f32.rs | 7 | ||||
| -rw-r--r-- | src/libcore/num/f64.rs | 7 | ||||
| -rw-r--r-- | src/libstd/f32.rs | 2 | ||||
| -rw-r--r-- | src/libstd/f64.rs | 2 |
4 files changed, 14 insertions, 4 deletions
diff --git a/src/libcore/num/f32.rs b/src/libcore/num/f32.rs index 43d38926c97..7f758f2a23b 100644 --- a/src/libcore/num/f32.rs +++ b/src/libcore/num/f32.rs @@ -8,7 +8,12 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -//! Operations and constants for 32-bits floats (`f32` type) +//! This module provides constants which are specific to the implementation +//! of the `f32` floating point data type. +//! +//! Mathematically significant numbers are provided in the `consts` sub-module. +//! +//! *[See also the `f32` primitive type](../../std/primitive.f32.html).* #![stable(feature = "rust1", since = "1.0.0")] diff --git a/src/libcore/num/f64.rs b/src/libcore/num/f64.rs index 4ff80a2f05d..b9db4990a7e 100644 --- a/src/libcore/num/f64.rs +++ b/src/libcore/num/f64.rs @@ -8,7 +8,12 @@ // option. This file may not be copied, modified, or distributed // except according to those terms. -//! Operations and constants for 64-bits floats (`f64` type) +//! This module provides constants which are specific to the implementation +//! of the `f64` floating point data type. +//! +//! Mathematically significant numbers are provided in the `consts` sub-module. +//! +//! *[See also the `f64` primitive type](../../std/primitive.f64.html).* #![stable(feature = "rust1", since = "1.0.0")] diff --git a/src/libstd/f32.rs b/src/libstd/f32.rs index e5b1394f070..6d76c7e722c 100644 --- a/src/libstd/f32.rs +++ b/src/libstd/f32.rs @@ -13,7 +13,7 @@ //! //! Mathematically significant numbers are provided in the `consts` sub-module. //! -//! *[See also the `f32` primitive type](../primitive.f32.html).* +//! *[See also the `f32` primitive type](../../std/primitive.f32.html).* #![stable(feature = "rust1", since = "1.0.0")] #![allow(missing_docs)] diff --git a/src/libstd/f64.rs b/src/libstd/f64.rs index f4d804fd508..dee9566f1fc 100644 --- a/src/libstd/f64.rs +++ b/src/libstd/f64.rs @@ -13,7 +13,7 @@ //! //! Mathematically significant numbers are provided in the `consts` sub-module. //! -//! *[See also the `f64` primitive type](../primitive.f64.html).* +//! *[See also the `f64` primitive type](../../std/primitive.f64.html).* #![stable(feature = "rust1", since = "1.0.0")] #![allow(missing_docs)] |
