From 87c9fd2b425d0d477901872b601af58ac8128017 Mon Sep 17 00:00:00 2001 From: Cole Reynolds Date: Sat, 31 Oct 2015 20:31:16 -0400 Subject: [PATCH] Minor documentation correction Corrects `write_bytes`'s documentation as the parameter name is `val` not `c`. --- src/libcore/intrinsics.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libcore/intrinsics.rs b/src/libcore/intrinsics.rs index 429f4fbed28..36c523cabc9 100644 --- a/src/libcore/intrinsics.rs +++ b/src/libcore/intrinsics.rs @@ -384,7 +384,7 @@ pub fn copy(src: *const T, dst: *mut T, count: usize); /// Invokes memset on the specified pointer, setting `count * size_of::()` - /// bytes of memory starting at `dst` to `c`. + /// bytes of memory starting at `dst` to `val`. #[stable(feature = "rust1", since = "1.0.0")] pub fn write_bytes(dst: *mut T, val: u8, count: usize);