fix typo
This commit is contained in:
parent
5702f436aa
commit
d1fec0d87a
1 changed files with 1 additions and 1 deletions
|
|
@ -448,7 +448,7 @@ pub unsafe fn uninitialized<T>() -> T {
|
|||
pub fn swap<T>(x: &mut T, y: &mut T) {
|
||||
unsafe {
|
||||
// Give ourselves some scratch space to work with
|
||||
let mut t: [u8; 16] = mem::uninitialized();
|
||||
let mut t: [u8; 16] = uninitialized();
|
||||
|
||||
let x = x as *mut T as *mut u8;
|
||||
let y = y as *mut T as *mut u8;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue