mirror of
https://github.com/rust-lang/rust.git
synced 2024-12-27 07:55:03 +00:00
fix the ptr::set_memory docstring
This commit is contained in:
parent
da9172af60
commit
107e371bf0
@ -161,8 +161,8 @@ pub unsafe fn copy_nonoverlapping_memory<T>(dst: *mut T, src: *const T, count: u
|
||||
}
|
||||
|
||||
/**
|
||||
* Invokes memset on the specified pointer, setting `count` bytes of memory
|
||||
* starting at `dst` to `c`.
|
||||
* Invokes memset on the specified pointer, setting `count * size_of::<T>()`
|
||||
* bytes of memory starting at `dst` to `c`.
|
||||
*/
|
||||
#[inline(always)]
|
||||
#[cfg(target_word_size = "32", not(stage0))]
|
||||
@ -172,8 +172,8 @@ pub unsafe fn set_memory<T>(dst: *mut T, c: u8, count: uint) {
|
||||
}
|
||||
|
||||
/**
|
||||
* Invokes memset on the specified pointer, setting `count` bytes of memory
|
||||
* starting at `dst` to `c`.
|
||||
* Invokes memset on the specified pointer, setting `count * size_of::<T>()`
|
||||
* bytes of memory starting at `dst` to `c`.
|
||||
*/
|
||||
#[inline(always)]
|
||||
#[cfg(target_word_size = "64", not(stage0))]
|
||||
|
Loading…
Reference in New Issue
Block a user