typo
This commit is contained in:
parent
612e854acb
commit
c06c5ea7a0
|
@ -95,7 +95,7 @@ fn align_down_mut<T>(sp: *mut T, n: uint) -> *mut T {
|
||||||
sp as *mut T
|
sp as *mut T
|
||||||
}
|
}
|
||||||
|
|
||||||
// ptr::offset_mmut is positive ints only
|
// ptr::offset_mut is positive ints only
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn offset_mut<T>(ptr: *mut T, count: int) -> *mut T {
|
pub fn offset_mut<T>(ptr: *mut T, count: int) -> *mut T {
|
||||||
(ptr as int + count * (size_of::<T>() as int)) as *mut T
|
(ptr as int + count * (size_of::<T>() as int)) as *mut T
|
||||||
|
|
Loading…
Reference in New Issue