From 107e371bf063bc7e67698814ce87fe6cbf920d9d Mon Sep 17 00:00:00 2001 From: Daniel Micay Date: Tue, 11 Jun 2013 17:48:44 -0400 Subject: [PATCH] fix the ptr::set_memory docstring --- src/libstd/ptr.rs | 8 ++++---- 1 file 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(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))]