@@ -479,11 +479,10 @@ impl f64 {
479479 /// # Examples
480480 ///
481481 /// ```
482- /// #![feature(float_to_from_bytes)]
483482 /// let bytes = 12.5f64.to_be_bytes();
484483 /// assert_eq!(bytes, [0x40, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]);
485484 /// ```
486- #[ unstable ( feature = "float_to_from_bytes" , issue = "60446 " ) ]
485+ #[ stable ( feature = "float_to_from_bytes" , since = "1.40.0 " ) ]
487486 #[ inline]
488487 pub fn to_be_bytes ( self ) -> [ u8 ; 8 ] {
489488 self . to_bits ( ) . to_be_bytes ( )
@@ -495,11 +494,10 @@ impl f64 {
495494 /// # Examples
496495 ///
497496 /// ```
498- /// #![feature(float_to_from_bytes)]
499497 /// let bytes = 12.5f64.to_le_bytes();
500498 /// assert_eq!(bytes, [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x29, 0x40]);
501499 /// ```
502- #[ unstable ( feature = "float_to_from_bytes" , issue = "60446 " ) ]
500+ #[ stable ( feature = "float_to_from_bytes" , since = "1.40.0 " ) ]
503501 #[ inline]
504502 pub fn to_le_bytes ( self ) -> [ u8 ; 8 ] {
505503 self . to_bits ( ) . to_le_bytes ( )
@@ -517,7 +515,6 @@ impl f64 {
517515 /// # Examples
518516 ///
519517 /// ```
520- /// #![feature(float_to_from_bytes)]
521518 /// let bytes = 12.5f64.to_ne_bytes();
522519 /// assert_eq!(
523520 /// bytes,
@@ -528,7 +525,7 @@ impl f64 {
528525 /// }
529526 /// );
530527 /// ```
531- #[ unstable ( feature = "float_to_from_bytes" , issue = "60446 " ) ]
528+ #[ stable ( feature = "float_to_from_bytes" , since = "1.40.0 " ) ]
532529 #[ inline]
533530 pub fn to_ne_bytes ( self ) -> [ u8 ; 8 ] {
534531 self . to_bits ( ) . to_ne_bytes ( )
@@ -539,11 +536,10 @@ impl f64 {
539536 /// # Examples
540537 ///
541538 /// ```
542- /// #![feature(float_to_from_bytes)]
543539 /// let value = f64::from_be_bytes([0x40, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]);
544540 /// assert_eq!(value, 12.5);
545541 /// ```
546- #[ unstable ( feature = "float_to_from_bytes" , issue = "60446 " ) ]
542+ #[ stable ( feature = "float_to_from_bytes" , since = "1.40.0 " ) ]
547543 #[ inline]
548544 pub fn from_be_bytes ( bytes : [ u8 ; 8 ] ) -> Self {
549545 Self :: from_bits ( u64:: from_be_bytes ( bytes) )
@@ -554,11 +550,10 @@ impl f64 {
554550 /// # Examples
555551 ///
556552 /// ```
557- /// #![feature(float_to_from_bytes)]
558553 /// let value = f64::from_le_bytes([0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x29, 0x40]);
559554 /// assert_eq!(value, 12.5);
560555 /// ```
561- #[ unstable ( feature = "float_to_from_bytes" , issue = "60446 " ) ]
556+ #[ stable ( feature = "float_to_from_bytes" , since = "1.40.0 " ) ]
562557 #[ inline]
563558 pub fn from_le_bytes ( bytes : [ u8 ; 8 ] ) -> Self {
564559 Self :: from_bits ( u64:: from_le_bytes ( bytes) )
@@ -576,15 +571,14 @@ impl f64 {
576571 /// # Examples
577572 ///
578573 /// ```
579- /// #![feature(float_to_from_bytes)]
580574 /// let value = f64::from_ne_bytes(if cfg!(target_endian = "big") {
581575 /// [0x40, 0x29, 0x00, 0x00, 0x00, 0x00, 0x00, 0x00]
582576 /// } else {
583577 /// [0x00, 0x00, 0x00, 0x00, 0x00, 0x00, 0x29, 0x40]
584578 /// });
585579 /// assert_eq!(value, 12.5);
586580 /// ```
587- #[ unstable ( feature = "float_to_from_bytes" , issue = "60446 " ) ]
581+ #[ stable ( feature = "float_to_from_bytes" , since = "1.40.0 " ) ]
588582 #[ inline]
589583 pub fn from_ne_bytes ( bytes : [ u8 ; 8 ] ) -> Self {
590584 Self :: from_bits ( u64:: from_ne_bytes ( bytes) )
0 commit comments