about summary refs log tree commit diff
path: root/library/std/src
diff options
context:
space:
mode:
authorAmanieu d'Antras <amanieu@gmail.com>2021-06-30 20:25:04 +0100
committerAmanieu d'Antras <amanieu@gmail.com>2021-06-30 20:28:51 +0100
commite2536bb271ead2228f5a7c54db043fe681d61b3f (patch)
treeb1e97bc9b2b0c8427340805335dacfa3231ae180 /library/std/src
parentfc2705d707db7b219a8af48ee8f5385354ff5da3 (diff)
downloadrust-e2536bb271ead2228f5a7c54db043fe681d61b3f.tar.gz
rust-e2536bb271ead2228f5a7c54db043fe681d61b3f.zip
Remove "length" doc aliases
Diffstat (limited to 'library/std/src')
-rw-r--r--library/std/src/collections/hash/map.rs1
-rw-r--r--library/std/src/collections/hash/set.rs1
-rw-r--r--library/std/src/ffi/os_str.rs1
3 files changed, 0 insertions, 3 deletions
diff --git a/library/std/src/collections/hash/map.rs b/library/std/src/collections/hash/map.rs
index 0f87681aaea..d7cb8a55636 100644
--- a/library/std/src/collections/hash/map.rs
+++ b/library/std/src/collections/hash/map.rs
@@ -454,7 +454,6 @@ impl<K, V, S> HashMap<K, V, S> {
     /// a.insert(1, "a");
     /// assert_eq!(a.len(), 1);
     /// ```
-    #[doc(alias = "length")]
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn len(&self) -> usize {
         self.base.len()
diff --git a/library/std/src/collections/hash/set.rs b/library/std/src/collections/hash/set.rs
index 27b0336a056..272e1c2be2b 100644
--- a/library/std/src/collections/hash/set.rs
+++ b/library/std/src/collections/hash/set.rs
@@ -202,7 +202,6 @@ impl<T, S> HashSet<T, S> {
     /// v.insert(1);
     /// assert_eq!(v.len(), 1);
     /// ```
-    #[doc(alias = "length")]
     #[inline]
     #[stable(feature = "rust1", since = "1.0.0")]
     pub fn len(&self) -> usize {
diff --git a/library/std/src/ffi/os_str.rs b/library/std/src/ffi/os_str.rs
index ca391ffb3d5..2a85f375ae2 100644
--- a/library/std/src/ffi/os_str.rs
+++ b/library/std/src/ffi/os_str.rs
@@ -694,7 +694,6 @@ impl OsStr {
     /// let os_str = OsStr::new("foo");
     /// assert_eq!(os_str.len(), 3);
     /// ```
-    #[doc(alias = "length")]
     #[stable(feature = "osstring_simple_functions", since = "1.9.0")]
     #[inline]
     pub fn len(&self) -> usize {