File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -688,7 +688,7 @@ impl f32 {
688
688
/// - if `self` is [`MAX`] or [`INFINITY`], this returns [`INFINITY`];
689
689
/// - otherwise the unique least value greater than `self` is returned.
690
690
///
691
- /// The identity `x.next_up() == -(-x).next_down()` holds for all `x`. When `x`
691
+ /// The identity `x.next_up() == -(-x).next_down()` holds for all non-NaN `x`. When `x`
692
692
/// is finite `x == x.next_up().next_down()` also holds.
693
693
///
694
694
/// ```rust
@@ -738,7 +738,7 @@ impl f32 {
738
738
/// - if `self` is [`MIN`] or [`NEG_INFINITY`], this returns [`NEG_INFINITY`];
739
739
/// - otherwise the unique greatest value less than `self` is returned.
740
740
///
741
- /// The identity `x.next_down() == -(-x).next_up()` holds for all `x`. When `x`
741
+ /// The identity `x.next_down() == -(-x).next_up()` holds for all non-NaN `x`. When `x`
742
742
/// is finite `x == x.next_down().next_up()` also holds.
743
743
///
744
744
/// ```rust
Original file line number Diff line number Diff line change @@ -698,7 +698,7 @@ impl f64 {
698
698
/// - if `self` is [`MAX`] or [`INFINITY`], this returns [`INFINITY`];
699
699
/// - otherwise the unique least value greater than `self` is returned.
700
700
///
701
- /// The identity `x.next_up() == -(-x).next_down()` holds for all `x`. When `x`
701
+ /// The identity `x.next_up() == -(-x).next_down()` holds for all non-NaN `x`. When `x`
702
702
/// is finite `x == x.next_up().next_down()` also holds.
703
703
///
704
704
/// ```rust
@@ -748,7 +748,7 @@ impl f64 {
748
748
/// - if `self` is [`MIN`] or [`NEG_INFINITY`], this returns [`NEG_INFINITY`];
749
749
/// - otherwise the unique greatest value less than `self` is returned.
750
750
///
751
- /// The identity `x.next_down() == -(-x).next_up()` holds for all `x`. When `x`
751
+ /// The identity `x.next_down() == -(-x).next_up()` holds for all non-NaN `x`. When `x`
752
752
/// is finite `x == x.next_down().next_up()` also holds.
753
753
///
754
754
/// ```rust
You can’t perform that action at this time.
0 commit comments