Skip to content

Commit 7a3b331

Browse files
committed
Add "memset" as doc alias to slice::fill()
1 parent 172acf8 commit 7a3b331

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)