Skip to content

Commit 969f970

Browse files
committed
Fix typos in floating-point primitive type docs
1 parent bf662eb commit 969f970

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/primitive_docs.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -1130,7 +1130,7 @@ 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 [`prim@f32`] or [Wikipedia on
1133+
/// bits. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on
11341134
/// half-precision values][wikipedia] for more information.
11351135
///
11361136
/// Note that most common platforms will not support `f16` in hardware without enabling extra target
@@ -1235,12 +1235,12 @@ mod prim_f64 {}
12351235
/// A 128-bit floating point type (specifically, the "binary128" type defined in IEEE 754-2008).
12361236
///
12371237
/// This type is very similar to [`prim@f32`] and [`prim@f64`], but has increased precision by using twice
1238-
/// as many bits as `f64`. Please see [the documentation for [`prim@f32`] or [Wikipedia on
1238+
/// as many bits as `f64`. Please see [the documentation for `f32`](prim@f32) or [Wikipedia on
12391239
/// quad-precision values][wikipedia] for more information.
12401240
///
12411241
/// Note that no platforms have hardware support for `f128` without enabling target specific features,
12421242
/// as for all instruction set architectures `f128` is considered an optional feature.
1243-
/// Only Power ISA ("PowerPC") and RISCV specify it, and only certain microarchitectures
1243+
/// Only Power ISA ("PowerPC") and RISC-V specify it, and only certain microarchitectures
12441244
/// actually implement it. For x86-64 and AArch64, ISA support is not even specified,
12451245
/// so it will always be a software implementation significantly slower than `f64`.
12461246
///

0 commit comments

Comments
 (0)