Skip to content

Commit 9e25545

Browse files
committed
Auto merge of #46933 - clarcharr:float_docs, r=steveklabnik
Make core::f32/f64 docs match std. For some reason these weren't in sync.
2 parents ebddfcb + ebdd667 commit 9e25545

File tree

4 files changed

+14
-4
lines changed

4 files changed

+14
-4
lines changed

src/libcore/num/f32.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for 32-bits floats (`f32` type)
11+
//! This module provides constants which are specific to the implementation
12+
//! of the `f32` floating point data type.
13+
//!
14+
//! Mathematically significant numbers are provided in the `consts` sub-module.
15+
//!
16+
//! *[See also the `f32` primitive type](../../std/primitive.f32.html).*
1217
1318
#![stable(feature = "rust1", since = "1.0.0")]
1419

src/libcore/num/f64.rs

+6-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,12 @@
88
// option. This file may not be copied, modified, or distributed
99
// except according to those terms.
1010

11-
//! Operations and constants for 64-bits floats (`f64` type)
11+
//! This module provides constants which are specific to the implementation
12+
//! of the `f64` floating point data type.
13+
//!
14+
//! Mathematically significant numbers are provided in the `consts` sub-module.
15+
//!
16+
//! *[See also the `f64` primitive type](../../std/primitive.f64.html).*
1217
1318
#![stable(feature = "rust1", since = "1.0.0")]
1419

src/libstd/f32.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//!
1414
//! Mathematically significant numbers are provided in the `consts` sub-module.
1515
//!
16-
//! *[See also the `f32` primitive type](../primitive.f32.html).*
16+
//! *[See also the `f32` primitive type](../../std/primitive.f32.html).*
1717
1818
#![stable(feature = "rust1", since = "1.0.0")]
1919
#![allow(missing_docs)]

src/libstd/f64.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@
1313
//!
1414
//! Mathematically significant numbers are provided in the `consts` sub-module.
1515
//!
16-
//! *[See also the `f64` primitive type](../primitive.f64.html).*
16+
//! *[See also the `f64` primitive type](../../std/primitive.f64.html).*
1717
1818
#![stable(feature = "rust1", since = "1.0.0")]
1919
#![allow(missing_docs)]

0 commit comments

Comments
 (0)