Skip to content

Commit

Permalink
Comment the Rust version for NAN.is_sign_* behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
cuviper committed Feb 28, 2018
1 parent 080f6f2 commit 04a3f2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions src/float.rs
Original file line number Diff line number Diff line change
Expand Up @@ -505,8 +505,8 @@ pub trait FloatCore: Num + NumCast + Neg<Output = Self> + PartialOrd + Copy {
}

/// Returns `true` if `self` is positive, including `+0.0` and
/// `FloatCore::infinity()`, and with newer versions of Rust
/// even `FloatCore::nan()`.
/// `FloatCore::infinity()`, and since Rust 1.20 also
/// `FloatCore::nan()`.
///
/// # Examples
///
Expand All @@ -532,8 +532,8 @@ pub trait FloatCore: Num + NumCast + Neg<Output = Self> + PartialOrd + Copy {
}

/// Returns `true` if `self` is negative, including `-0.0` and
/// `FloatCore::neg_infinity()`, and with newer versions of Rust
/// even `-FloatCore::nan()`.
/// `FloatCore::neg_infinity()`, and since Rust 1.20 also
/// `-FloatCore::nan()`.
///
/// # Examples
///
Expand Down Expand Up @@ -1196,7 +1196,7 @@ pub trait Float
fn signum(self) -> Self;

/// Returns `true` if `self` is positive, including `+0.0`,
/// `Float::infinity()`, and with newer versions of Rust `f64::NAN`.
/// `Float::infinity()`, and since Rust 1.20 also `Float::nan()`.
///
/// ```
/// use num_traits::Float;
Expand All @@ -1214,7 +1214,7 @@ pub trait Float
fn is_sign_positive(self) -> bool;

/// Returns `true` if `self` is negative, including `-0.0`,
/// `Float::neg_infinity()`, and with newer versions of Rust `-f64::NAN`.
/// `Float::neg_infinity()`, and since Rust 1.20 also `-Float::nan()`.
///
/// ```
/// use num_traits::Float;
Expand Down

0 comments on commit 04a3f2a

Please sign in to comment.