Skip to content

Commit b252f4c

Browse files
committed
Auto merge of #29496 - cpjreynolds:patch-1, r=apasel422
Corrects `write_bytes`'s documentation as the parameter name is `val` not `c`.
2 parents 1a2eaff + 87c9fd2 commit b252f4c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcore/intrinsics.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -384,7 +384,7 @@ extern "rust-intrinsic" {
384384
pub fn copy<T>(src: *const T, dst: *mut T, count: usize);
385385

386386
/// Invokes memset on the specified pointer, setting `count * size_of::<T>()`
387-
/// bytes of memory starting at `dst` to `c`.
387+
/// bytes of memory starting at `dst` to `val`.
388388
#[stable(feature = "rust1", since = "1.0.0")]
389389
pub fn write_bytes<T>(dst: *mut T, val: u8, count: usize);
390390

0 commit comments

Comments
 (0)