Rollup merge of #27903 - tshepang:improve-example, r=steveklabnik
This commit is contained in:
commit
fb06272ed3
@ -247,8 +247,8 @@ extern "rust-intrinsic" {
|
||||
/// ```
|
||||
/// use std::mem;
|
||||
///
|
||||
/// let v: &[u8] = unsafe { mem::transmute("L") };
|
||||
/// assert!(v == [76]);
|
||||
/// let array: &[u8] = unsafe { mem::transmute("Rust") };
|
||||
/// assert_eq!(array, [82, 117, 115, 116]);
|
||||
/// ```
|
||||
#[stable(feature = "rust1", since = "1.0.0")]
|
||||
pub fn transmute<T,U>(e: T) -> U;
|
||||
|
Loading…
x
Reference in New Issue
Block a user