mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-22 06:44:35 +00:00
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
@ -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…
Reference in New Issue
Block a user