Skip to content

Commit

Permalink
Auto merge of #79229 - sdroege:slice-fill-memset, r=dtolnay
Browse files Browse the repository at this point in the history
Add "memset" as doc alias to slice::fill()

Similar to 53f969d and should make it easier for people coming from C to find this function.
  • Loading branch information
bors committed Nov 22, 2020
2 parents 7009011 + 7a3b331 commit 8ca930a
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions library/core/src/slice/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8ca930a

Please sign in to comment.