Add "memset" as doc alias to slice::fill()

This commit is contained in:
Sebastian Dröge 2020-11-20 15:18:41 +02:00
parent 172acf8f61
commit 7a3b331587

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