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 @@ -536,7 +536,7 @@ impl f32 {
536
536
Self :: from_bits ( u32:: from_be_bytes ( bytes) )
537
537
}
538
538
539
- /// Create a floating point value from its representation as a byte array in big endian.
539
+ /// Create a floating point value from its representation as a byte array in little endian.
540
540
///
541
541
/// # Examples
542
542
///
@@ -551,7 +551,7 @@ impl f32 {
551
551
Self :: from_bits ( u32:: from_le_bytes ( bytes) )
552
552
}
553
553
554
- /// Create a floating point value from its representation as a byte array in big endian.
554
+ /// Create a floating point value from its representation as a byte array in native endian.
555
555
///
556
556
/// As the target platform's native endianness is used, portable code
557
557
/// likely wants to use [`from_be_bytes`] or [`from_le_bytes`], as
Original file line number Diff line number Diff line change @@ -549,7 +549,7 @@ impl f64 {
549
549
Self :: from_bits ( u64:: from_be_bytes ( bytes) )
550
550
}
551
551
552
- /// Create a floating point value from its representation as a byte array in big endian.
552
+ /// Create a floating point value from its representation as a byte array in little endian.
553
553
///
554
554
/// # Examples
555
555
///
@@ -564,7 +564,7 @@ impl f64 {
564
564
Self :: from_bits ( u64:: from_le_bytes ( bytes) )
565
565
}
566
566
567
- /// Create a floating point value from its representation as a byte array in big endian.
567
+ /// Create a floating point value from its representation as a byte array in native endian.
568
568
///
569
569
/// As the target platform's native endianness is used, portable code
570
570
/// likely wants to use [`from_be_bytes`] or [`from_le_bytes`], as
You can’t perform that action at this time.
0 commit comments