Skip to content

Commit e40d058

Browse files
committed
Remove incorrect docs from mem::transmute
Fixes #22032
1 parent 012e964 commit e40d058

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/libcore/intrinsics.rs

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -222,12 +222,11 @@ extern "rust-intrinsic" {
222222

223223
/// Unsafely transforms a value of one type into a value of another type.
224224
///
225-
/// Both types must have the same size and alignment, and this guarantee
226-
/// is enforced at compile-time.
225+
/// Both types must have the same size.
227226
///
228227
/// # Examples
229228
///
230-
/// ```rust
229+
/// ```
231230
/// use std::mem;
232231
///
233232
/// let v: &[u8] = unsafe { mem::transmute("L") };

0 commit comments

Comments
 (0)