We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 9f9f2c0 commit f54df44Copy full SHA for f54df44
src/libcore/intrinsics.rs
@@ -737,16 +737,6 @@ extern "rust-intrinsic" {
737
///
738
/// There are a few things that `transmute` is really useful for.
739
740
- /// Getting the bitpattern of a floating point type (or, more generally,
741
- /// type punning, when `T` and `U` aren't pointers):
742
- ///
743
- /// ```
744
- /// let bitpattern = unsafe {
745
- /// std::mem::transmute::<f32, u32>(1.0)
746
- /// };
747
- /// assert_eq!(bitpattern, 0x3F800000);
748
749
750
/// Turning a pointer into a function pointer. This is *not* portable to
751
/// machines where function pointers and data pointers have different sizes.
752
0 commit comments