@@ -47,7 +47,6 @@ use UnderflowResult::*;
47
47
/// any other key, as determined by the [`Ord`] trait, changes while it is in the map. This is
48
48
/// normally only possible through [`Cell`], [`RefCell`], global state, I/O, or unsafe code.
49
49
///
50
- /// [`Ord`]: core::cmp::Ord
51
50
/// [`Cell`]: core::cell::Cell
52
51
/// [`RefCell`]: core::cell::RefCell
53
52
///
@@ -93,9 +92,10 @@ use UnderflowResult::*;
93
92
/// }
94
93
/// ```
95
94
///
96
- /// `BTreeMap` also implements an [`Entry API`](#method.entry), which allows
97
- /// for more complex methods of getting, setting, updating and removing keys and
98
- /// their values:
95
+ /// `BTreeMap` also implements an [`Entry API`], which allows for more complex
96
+ /// methods of getting, setting, updating and removing keys and their values:
97
+ ///
98
+ /// [`Entry API`]: BTreeMap::entry
99
99
///
100
100
/// ```
101
101
/// use std::collections::BTreeMap;
@@ -453,8 +453,6 @@ impl<K: Debug + Ord, V: Debug> Debug for Entry<'_, K, V> {
453
453
454
454
/// A view into a vacant entry in a `BTreeMap`.
455
455
/// It is part of the [`Entry`] enum.
456
- ///
457
- /// [`Entry`]: enum.Entry.html
458
456
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
459
457
pub struct VacantEntry < ' a , K : ' a , V : ' a > {
460
458
key : K ,
@@ -474,8 +472,6 @@ impl<K: Debug + Ord, V> Debug for VacantEntry<'_, K, V> {
474
472
475
473
/// A view into an occupied entry in a `BTreeMap`.
476
474
/// It is part of the [`Entry`] enum.
477
- ///
478
- /// [`Entry`]: enum.Entry.html
479
475
#[ stable( feature = "rust1" , since = "1.0.0" ) ]
480
476
pub struct OccupiedEntry < ' a , K : ' a , V : ' a > {
481
477
handle : Handle < NodeRef < marker:: Mut < ' a > , K , V , marker:: LeafOrInternal > , marker:: KV > ,
@@ -815,7 +811,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
815
811
/// types that can be `==` without being identical. See the [module-level
816
812
/// documentation] for more.
817
813
///
818
- /// [module-level documentation]: index.html #insert-and-complex-keys
814
+ /// [module-level documentation]: crate::collections #insert-and-complex-keys
819
815
///
820
816
/// # Examples
821
817
///
@@ -2554,7 +2550,7 @@ impl<'a, K: Ord, V> OccupiedEntry<'a, K, V> {
2554
2550
/// If you need a reference to the `OccupiedEntry` that may outlive the
2555
2551
/// destruction of the `Entry` value, see [`into_mut`].
2556
2552
///
2557
- /// [`into_mut`]: #method. into_mut
2553
+ /// [`into_mut`]: OccupiedEntry:: into_mut
2558
2554
///
2559
2555
/// # Examples
2560
2556
///
@@ -2584,7 +2580,7 @@ impl<'a, K: Ord, V> OccupiedEntry<'a, K, V> {
2584
2580
///
2585
2581
/// If you need multiple references to the `OccupiedEntry`, see [`get_mut`].
2586
2582
///
2587
- /// [`get_mut`]: #method. get_mut
2583
+ /// [`get_mut`]: OccupiedEntry:: get_mut
2588
2584
///
2589
2585
/// # Examples
2590
2586
///
0 commit comments