Auto merge of #79229 - sdroege:slice-fill-memset, r=dtolnay
Add "memset" as doc alias to slice::fill() Similar to 53f969dfd1b5c128145c24653c668193e8c50f85 and should make it easier for people coming from C to find this function.
This commit is contained in:
commit
8ca930aa26
@ -2585,6 +2585,7 @@ impl<T> [T] {
|
||||
/// buf.fill(1);
|
||||
/// assert_eq!(buf, vec![1; 10]);
|
||||
/// ```
|
||||
#[doc(alias = "memset")]
|
||||
#[unstable(feature = "slice_fill", issue = "70758")]
|
||||
pub fn fill(&mut self, value: T)
|
||||
where
|
||||
|
Loading…
x
Reference in New Issue
Block a user