diff options
| author | Yuki Okushi <jtitor@2k36.org> | 2021-07-06 02:33:16 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2021-07-06 02:33:16 +0900 |
| commit | 470ed70a86c3a77b4643300d022fd79cf43d97cc (patch) | |
| tree | a016cbf6eb5658347509ae95d4f3ce04698cc5e9 /library/alloc/src/string.rs | |
| parent | 2bc7d4d70acc2fb317c26600e59094c510ac528b (diff) | |
| parent | e2536bb271ead2228f5a7c54db043fe681d61b3f (diff) | |
| download | rust-470ed70a86c3a77b4643300d022fd79cf43d97cc.tar.gz rust-470ed70a86c3a77b4643300d022fd79cf43d97cc.zip | |
Rollup merge of #86852 - Amanieu:remove_doc_aliases, r=joshtriplett
Remove some doc aliases As per the new doc alias policy in https://github.com/rust-lang/std-dev-guide/pull/25, this removes some controversial doc aliases: - `malloc`, `alloc`, `realloc`, etc. - `length` (alias for `len`) - `delete` (alias for `remove` in collections and also file/directory deletion) r? `@joshtriplett`
Diffstat (limited to 'library/alloc/src/string.rs')
| -rw-r--r-- | library/alloc/src/string.rs | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/library/alloc/src/string.rs b/library/alloc/src/string.rs index d0cf6244756..0d8678291be 100644 --- a/library/alloc/src/string.rs +++ b/library/alloc/src/string.rs @@ -419,8 +419,6 @@ impl String { /// ``` #[cfg(not(no_global_oom_handling))] #[inline] - #[doc(alias = "alloc")] - #[doc(alias = "malloc")] #[stable(feature = "rust1", since = "1.0.0")] pub fn with_capacity(capacity: usize) -> String { String { vec: Vec::with_capacity(capacity) } @@ -1534,7 +1532,6 @@ impl String { /// assert_eq!(fancy_f.len(), 4); /// assert_eq!(fancy_f.chars().count(), 3); /// ``` - #[doc(alias = "length")] #[inline] #[stable(feature = "rust1", since = "1.0.0")] pub fn len(&self) -> usize { |
