Skip to content
Permalink
Browse files

Remove note about transmute for float bitpatterns.

  • Loading branch information...
solson committed Apr 11, 2019
1 parent 9f9f2c0 commit f54df449072895f258876adf9545fe3a0840492f
Showing with 0 additions and 10 deletions.
  1. +0 −10 src/libcore/intrinsics.rs
@@ -737,16 +737,6 @@ extern "rust-intrinsic" {
///
/// There are a few things that `transmute` is really useful for.
///
/// Getting the bitpattern of a floating point type (or, more generally,
/// type punning, when `T` and `U` aren't pointers):
///
/// ```
/// let bitpattern = unsafe {
/// std::mem::transmute::<f32, u32>(1.0)
/// };
/// assert_eq!(bitpattern, 0x3F800000);
/// ```
///
/// Turning a pointer into a function pointer. This is *not* portable to
/// machines where function pointers and data pointers have different sizes.
///

0 comments on commit f54df44

Please sign in to comment.
You can’t perform that action at this time.