Auto merge of #79229 - sdroege:slice-fill-memset, r=dtolnay
Add "memset" as doc alias to slice::fill()
Similar to 53f969dfd1
and should make it easier for people coming from C to find this function.
This commit is contained in:
commit
8ca930aa26
1 changed files with 1 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue