diff options
| author | Daniel Micay <danielmicay@gmail.com> | 2013-06-11 17:48:44 -0400 |
|---|---|---|
| committer | Daniel Micay <danielmicay@gmail.com> | 2013-06-11 17:48:44 -0400 |
| commit | 107e371bf063bc7e67698814ce87fe6cbf920d9d (patch) | |
| tree | bd09ecf1d006ad6d9c21c3d049857ebef3715ebe /src/libstd | |
| parent | da9172af60e04d40aad2f0184e81e2a74916eeba (diff) | |
| download | rust-107e371bf063bc7e67698814ce87fe6cbf920d9d.tar.gz rust-107e371bf063bc7e67698814ce87fe6cbf920d9d.zip | |
fix the ptr::set_memory docstring
Diffstat (limited to 'src/libstd')
| -rw-r--r-- | src/libstd/ptr.rs | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/libstd/ptr.rs b/src/libstd/ptr.rs index e2cbf716dd1..59e588ef533 100644 --- a/src/libstd/ptr.rs +++ b/src/libstd/ptr.rs @@ -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))] |
