Skip to content

Commit 8ca930a

Browse files
committed
Auto merge of #79229 - sdroege:slice-fill-memset, r=dtolnay
Add "memset" as doc alias to slice::fill() Similar to 53f969d and should make it easier for people coming from C to find this function.
2 parents 7009011 + 7a3b331 commit 8ca930a

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

library/core/src/slice/mod.rs

+1
Original file line numberDiff line numberDiff line change
@@ -2585,6 +2585,7 @@ impl<T> [T] {
25852585
/// buf.fill(1);
25862586
/// assert_eq!(buf, vec![1; 10]);
25872587
/// ```
2588+
#[doc(alias = "memset")]
25882589
#[unstable(feature = "slice_fill", issue = "70758")]
25892590
pub fn fill(&mut self, value: T)
25902591
where

0 commit comments

Comments
 (0)