File tree 2 files changed +8
-0
lines changed
2 files changed +8
-0
lines changed Original file line number Diff line number Diff line change @@ -660,6 +660,8 @@ impl f32 {
660
660
///
661
661
/// assert_eq!(x.max(y), y);
662
662
/// ```
663
+ ///
664
+ /// If one of the arguments is NaN, then the other argument is returned.
663
665
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
664
666
#[ inline]
665
667
pub fn max ( self , other : f32 ) -> f32 {
@@ -674,6 +676,8 @@ impl f32 {
674
676
///
675
677
/// assert_eq!(x.min(y), x);
676
678
/// ```
679
+ ///
680
+ /// If one of the arguments is NaN, then the other argument is returned.
677
681
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
678
682
#[ inline]
679
683
pub fn min ( self , other : f32 ) -> f32 {
Original file line number Diff line number Diff line change @@ -636,6 +636,8 @@ impl f64 {
636
636
///
637
637
/// assert_eq!(x.max(y), y);
638
638
/// ```
639
+ ///
640
+ /// If one of the arguments is NaN, then the other argument is returned.
639
641
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
640
642
#[ inline]
641
643
pub fn max ( self , other : f64 ) -> f64 {
@@ -650,6 +652,8 @@ impl f64 {
650
652
///
651
653
/// assert_eq!(x.min(y), x);
652
654
/// ```
655
+ ///
656
+ /// If one of the arguments is NaN, then the other argument is returned.
653
657
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
654
658
#[ inline]
655
659
pub fn min ( self , other : f64 ) -> f64 {
You can’t perform that action at this time.
0 commit comments