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:
bors 2020-11-22 04:27:03 +00:00
commit 8ca930aa26

View File

@ -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