about summary refs log tree commit diff
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2015-02-10 08:43:09 -0800
committerAlex Crichton <alex@alexcrichton.com>2015-02-10 08:43:09 -0800
commite630ed69836c5cff1d3e4cde4654c54abdc438bc (patch)
tree0ef39f6afdb5b0afc972469962f394bac617ec84
parentb0b373dce284f4a6584f8bd1b5f47f13d4490c0d (diff)
parente40d05800bd2f6c1e68548246a21f305447ae300 (diff)
downloadrust-e630ed69836c5cff1d3e4cde4654c54abdc438bc.tar.gz
rust-e630ed69836c5cff1d3e4cde4654c54abdc438bc.zip
rollup merge of #22129: steveklabnik/gh22032
Fixes #22032
-rw-r--r--src/libcore/intrinsics.rs5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs
index 125e8a0e814..5562845e11d 100644
--- a/src/libcore/intrinsics.rs
+++ b/src/libcore/intrinsics.rs
@@ -222,12 +222,11 @@ extern "rust-intrinsic" {
 
     /// Unsafely transforms a value of one type into a value of another type.
     ///
-    /// Both types must have the same size and alignment, and this guarantee
-    /// is enforced at compile-time.
+    /// Both types must have the same size.
     ///
     /// # Examples
     ///
-    /// ```rust
+    /// ```
     /// use std::mem;
     ///
     /// let v: &[u8] = unsafe { mem::transmute("L") };