Skip to content

Commit 04a3f2a

Browse files
committed
Comment the Rust version for NAN.is_sign_* behavior
1 parent 080f6f2 commit 04a3f2a

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

src/float.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -505,8 +505,8 @@ pub trait FloatCore: Num + NumCast + Neg<Output = Self> + PartialOrd + Copy {
505505
}
506506

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

534534
/// Returns `true` if `self` is negative, including `-0.0` and
535-
/// `FloatCore::neg_infinity()`, and with newer versions of Rust
536-
/// even `-FloatCore::nan()`.
535+
/// `FloatCore::neg_infinity()`, and since Rust 1.20 also
536+
/// `-FloatCore::nan()`.
537537
///
538538
/// # Examples
539539
///
@@ -1196,7 +1196,7 @@ pub trait Float
11961196
fn signum(self) -> Self;
11971197

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

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

0 commit comments

Comments
 (0)