Skip to content

Commit

Permalink
Add "memset" as doc alias to slice::fill()
Browse files Browse the repository at this point in the history
  • Loading branch information
sdroege committed Nov 20, 2020
1 parent 172acf8 commit 7a3b331
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 7a3b331

Please sign in to comment.