Skip to content

Commit 64c4999

Browse files
authored
Apply suggestions from code review
1 parent a3dea6e commit 64c4999

File tree

3 files changed

+6
-7
lines changed

3 files changed

+6
-7
lines changed

src/ieee.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ use core::ops::Neg;
1212

1313
/// A floating point number that uses IEEE semantics.
1414
///
15-
/// Usually you will want the type aliases ([`Single`], [`Double`], ...) rather than using this
16-
/// directly.
15+
/// Usually you will want to use the available type aliases of this type
16+
/// (e.g., [`Single`], [`Double`]) rather than referencing it directly.
1717
///
1818
/// If `S` implements [`Semantics`], this type will implement [`Float`].
1919
#[must_use]
@@ -344,7 +344,7 @@ ieee_semantics! {
344344

345345
// FIXME(eddyb) consider moving X87-specific logic to a "has explicit integer bit"
346346
// associated `const` on `Semantics` itself.
347-
/// Floating point semantics for [`X87DoubleExtended`]
347+
/// Floating point semantics for [`X87DoubleExtended`].
348348
///
349349
/// See that type for more details.
350350
pub struct X87DoubleExtendedS;

src/lib.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,8 +64,7 @@ bitflags! {
6464
}
6565
}
6666

67-
/// The result of a computation including the output value and and any exceptions if there were
68-
/// errors.
67+
/// The result of a computation consisting of the output value and the exceptions, if any.
6968
#[must_use]
7069
#[derive(Copy, Clone, PartialEq, Eq, PartialOrd, Ord, Debug)]
7170
pub struct StatusAnd<T> {
@@ -157,7 +156,7 @@ pub const IEK_INF: ExpInt = ExpInt::max_value();
157156
pub const IEK_NAN: ExpInt = ExpInt::min_value();
158157
pub const IEK_ZERO: ExpInt = ExpInt::min_value() + 1;
159158

160-
/// An error creating a floating point from a string.
159+
/// An error which can occur when parsing a floating point number from a string.
161160
#[derive(Copy, Clone, PartialEq, Eq, Debug)]
162161
pub struct ParseError(pub &'static str);
163162

src/ppc.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ pub struct DoubleFloat<F>(F, F);
1515
/// 128-bit floating point number comprised of two IEEE [`Double`](ieee::Double) values.
1616
///
1717
/// This is the "IBM Extended Double" format, described at
18-
/// <https://www.ibm.com/docs/bg/aix/7.1?topic=sepl-128-bit-long-double-floating-point-data-type>.
18+
/// <https://www.ibm.com/docs/en/aix/7.3?topic=sepl-128-bit-long-double-floating-point-data-type>.
1919
pub type DoubleDouble = DoubleFloat<ieee::Double>;
2020

2121
// These are legacy semantics for the Fallback, inaccrurate implementation of

0 commit comments

Comments
 (0)