diff --git a/src/libstd/ptr.rs b/src/libstd/ptr.rs index e2cbf716dd1f6..59e588ef53389 100644 --- a/src/libstd/ptr.rs +++ b/src/libstd/ptr.rs @@ -161,8 +161,8 @@ pub unsafe fn copy_nonoverlapping_memory(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::()` + * 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(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::()` + * bytes of memory starting at `dst` to `c`. */ #[inline(always)] #[cfg(target_word_size = "64", not(stage0))]