diff options
| author | beetrees <b@beetr.ee> | 2024-08-27 05:26:28 +0100 |
|---|---|---|
| committer | beetrees <b@beetr.ee> | 2024-08-27 05:26:28 +0100 |
| commit | d0548359b5810c5c509e01de58fd47a1c3c6a385 (patch) | |
| tree | 09b9f6ac86e2e5268eaf5f79e7e8070fcaacf862 | |
| parent | 969f9702dad51b288bc7b3b399ae96a6d0711cdb (diff) | |
Reflow a couple of paragraphs in floating-point primitive docs
| -rw-r--r-- | library/core/src/primitive_docs.rs | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/library/core/src/primitive_docs.rs b/library/core/src/primitive_docs.rs index 70cfae3f7d9..a08b0ff6017 100644 --- a/library/core/src/primitive_docs.rs +++ b/library/core/src/primitive_docs.rs @@ -1130,8 +1130,8 @@ impl<T> (T,) {} /// A 16-bit floating point type (specifically, the "binary16" type defined in IEEE 754-2008). /// /// This type is very similar to [`prim@f32`] but has decreased precision because it uses half as many -/// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on -/// half-precision values][wikipedia] for more information. +/// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on half-precision +/// values][wikipedia] for more information. /// /// Note that most common platforms will not support `f16` in hardware without enabling extra target /// features, with the notable exception of Apple Silicon (also known as M1, M2, etc.) processors. @@ -1218,14 +1218,12 @@ mod prim_f32 {} #[doc(alias = "double")] /// A 64-bit floating point type (specifically, the "binary64" type defined in IEEE 754-2008). /// -/// This type is very similar to [`f32`], but has increased -/// precision by using twice as many bits. Please see [the documentation for -/// `f32`][`f32`] or [Wikipedia on double precision +/// This type is very similar to [`prim@f32`], but has increased precision by using twice as many +/// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision /// values][wikipedia] for more information. /// /// *[See also the `std::f64::consts` module](crate::f64::consts).* /// -/// [`f32`]: prim@f32 /// [wikipedia]: https://en.wikipedia.org/wiki/Double-precision_floating-point_format #[stable(feature = "rust1", since = "1.0.0")] mod prim_f64 {} |
