Skip to content

Commit fc2705d

Browse files
committed
Remove "delete" doc aliases
1 parent 618c805 commit fc2705d

File tree

5 files changed

+0
-7
lines changed

5 files changed

+0
-7
lines changed

Diff for: library/alloc/src/collections/btree/map.rs

-1
Original file line numberDiff line numberDiff line change
@@ -889,7 +889,6 @@ impl<K, V> BTreeMap<K, V> {
889889
/// assert_eq!(map.remove(&1), Some("a"));
890890
/// assert_eq!(map.remove(&1), None);
891891
/// ```
892-
#[doc(alias = "delete")]
893892
#[stable(feature = "rust1", since = "1.0.0")]
894893
pub fn remove<Q: ?Sized>(&mut self, key: &Q) -> Option<V>
895894
where

Diff for: library/alloc/src/collections/btree/set.rs

-1
Original file line numberDiff line numberDiff line change
@@ -810,7 +810,6 @@ impl<T> BTreeSet<T> {
810810
/// assert_eq!(set.remove(&2), true);
811811
/// assert_eq!(set.remove(&2), false);
812812
/// ```
813-
#[doc(alias = "delete")]
814813
#[stable(feature = "rust1", since = "1.0.0")]
815814
pub fn remove<Q: ?Sized>(&mut self, value: &Q) -> bool
816815
where

Diff for: library/std/src/collections/hash/map.rs

-1
Original file line numberDiff line numberDiff line change
@@ -893,7 +893,6 @@ where
893893
/// assert_eq!(map.remove(&1), Some("a"));
894894
/// assert_eq!(map.remove(&1), None);
895895
/// ```
896-
#[doc(alias = "delete")]
897896
#[inline]
898897
#[stable(feature = "rust1", since = "1.0.0")]
899898
pub fn remove<Q: ?Sized>(&mut self, k: &Q) -> Option<V>

Diff for: library/std/src/collections/hash/set.rs

-1
Original file line numberDiff line numberDiff line change
@@ -875,7 +875,6 @@ where
875875
/// assert_eq!(set.remove(&2), true);
876876
/// assert_eq!(set.remove(&2), false);
877877
/// ```
878-
#[doc(alias = "delete")]
879878
#[inline]
880879
#[stable(feature = "rust1", since = "1.0.0")]
881880
pub fn remove<Q: ?Sized>(&mut self, value: &Q) -> bool

Diff for: library/std/src/fs.rs

-3
Original file line numberDiff line numberDiff line change
@@ -1551,7 +1551,6 @@ impl AsInner<fs_imp::DirEntry> for DirEntry {
15511551
/// Ok(())
15521552
/// }
15531553
/// ```
1554-
#[doc(alias = "delete")]
15551554
#[stable(feature = "rust1", since = "1.0.0")]
15561555
pub fn remove_file<P: AsRef<Path>>(path: P) -> io::Result<()> {
15571556
fs_imp::unlink(path.as_ref())
@@ -1986,7 +1985,6 @@ pub fn create_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
19861985
/// Ok(())
19871986
/// }
19881987
/// ```
1989-
#[doc(alias = "delete")]
19901988
#[stable(feature = "rust1", since = "1.0.0")]
19911989
pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
19921990
fs_imp::rmdir(path.as_ref())
@@ -2024,7 +2022,6 @@ pub fn remove_dir<P: AsRef<Path>>(path: P) -> io::Result<()> {
20242022
/// Ok(())
20252023
/// }
20262024
/// ```
2027-
#[doc(alias = "delete")]
20282025
#[stable(feature = "rust1", since = "1.0.0")]
20292026
pub fn remove_dir_all<P: AsRef<Path>>(path: P) -> io::Result<()> {
20302027
fs_imp::remove_dir_all(path.as_ref())

0 commit comments

Comments
 (0)