Skip to content

Commit d054835

Browse files
committed
Reflow a couple of paragraphs in floating-point primitive docs
1 parent 969f970 commit d054835

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

library/core/src/primitive_docs.rs

+4-6
Original file line numberDiff line numberDiff line change
@@ -1130,8 +1130,8 @@ impl<T> (T,) {}
11301130
/// A 16-bit floating point type (specifically, the "binary16" type defined in IEEE 754-2008).
11311131
///
11321132
/// This type is very similar to [`prim@f32`] but has decreased precision because it uses half as many
1133-
/// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on
1134-
/// half-precision values][wikipedia] for more information.
1133+
/// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on half-precision
1134+
/// values][wikipedia] for more information.
11351135
///
11361136
/// Note that most common platforms will not support `f16` in hardware without enabling extra target
11371137
/// features, with the notable exception of Apple Silicon (also known as M1, M2, etc.) processors.
@@ -1218,14 +1218,12 @@ mod prim_f32 {}
12181218
#[doc(alias = "double")]
12191219
/// A 64-bit floating point type (specifically, the "binary64" type defined in IEEE 754-2008).
12201220
///
1221-
/// This type is very similar to [`f32`], but has increased
1222-
/// precision by using twice as many bits. Please see [the documentation for
1223-
/// `f32`][`f32`] or [Wikipedia on double precision
1221+
/// This type is very similar to [`prim@f32`], but has increased precision by using twice as many
1222+
/// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on double-precision
12241223
/// values][wikipedia] for more information.
12251224
///
12261225
/// *[See also the `std::f64::consts` module](crate::f64::consts).*
12271226
///
1228-
/// [`f32`]: prim@f32
12291227
/// [wikipedia]: https://en.wikipedia.org/wiki/Double-precision_floating-point_format
12301228
#[stable(feature = "rust1", since = "1.0.0")]
12311229
mod prim_f64 {}

0 commit comments

Comments
 (0)