Skip to content

Commit

Permalink
Remove note about transmute for float bitpatterns.
Browse files Browse the repository at this point in the history
  • Loading branch information
solson committed Apr 11, 2019
1 parent 9f9f2c0 commit f54df44
Showing 1 changed file with 0 additions and 10 deletions.
10 changes: 0 additions & 10 deletions src/libcore/intrinsics.rs
Expand Up @@ -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.
///
Expand Down

0 comments on commit f54df44

Please sign in to comment.