diff options
| author | bors <bors@rust-lang.org> | 2020-11-22 04:27:03 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2020-11-22 04:27:03 +0000 |
| commit | 8ca930aa262c04a898cf64155e40a6de3ec9ba9e (patch) | |
| tree | 8d20c944f00d53b5f3327dd3387ce69f09c8a428 | |
| parent | 70090118c281ea7dba2e6093462d8ae0e1fa7195 (diff) | |
| parent | 7a3b3315872c08b8637381a6a44f9653cc44f380 (diff) | |
| download | rust-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.rs | 1 |
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 |
