about summary refs log tree commit diff
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2020-11-22 04:27:03 +0000
committerbors <bors@rust-lang.org>2020-11-22 04:27:03 +0000
commit8ca930aa262c04a898cf64155e40a6de3ec9ba9e (patch)
tree8d20c944f00d53b5f3327dd3387ce69f09c8a428
parent70090118c281ea7dba2e6093462d8ae0e1fa7195 (diff)
parent7a3b3315872c08b8637381a6a44f9653cc44f380 (diff)
downloadrust-8ca930aa262c04a898cf64155e40a6de3ec9ba9e.tar.gz
rust-8ca930aa262c04a898cf64155e40a6de3ec9ba9e.zip
Auto merge of #79229 - sdroege:slice-fill-memset, r=dtolnay
Add "memset" as doc alias to slice::fill()

Similar to 53f969dfd1b5c128145c24653c668193e8c50f85 and should make it easier for people coming from C to find this function.
-rw-r--r--library/core/src/slice/mod.rs1
1 files changed, 1 insertions, 0 deletions
diff --git a/library/core/src/slice/mod.rs b/library/core/src/slice/mod.rs
index 83f22895237..bedd9dfa1fe 100644
--- a/library/core/src/slice/mod.rs
+++ b/library/core/src/slice/mod.rs
@@ -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