@@ -47,7 +47,6 @@ use UnderflowResult::*;
4747/// any other key, as determined by the [`Ord`] trait, changes while it is in the map. This is
4848/// normally only possible through [`Cell`], [`RefCell`], global state, I/O, or unsafe code.
4949///
50- /// [`Ord`]: core::cmp::Ord
5150/// [`Cell`]: core::cell::Cell
5251/// [`RefCell`]: core::cell::RefCell
5352///
@@ -93,9 +92,10 @@ use UnderflowResult::*;
9392/// }
9493/// ```
9594///
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
9999///
100100/// ```
101101/// use std::collections::BTreeMap;
@@ -453,8 +453,6 @@ impl<K: Debug + Ord, V: Debug> Debug for Entry<'_, K, V> {
453453
454454/// A view into a vacant entry in a `BTreeMap`.
455455/// It is part of the [`Entry`] enum.
456- ///
457- /// [`Entry`]: enum.Entry.html
458456#[ stable( feature = "rust1" , since = "1.0.0" ) ]
459457pub struct VacantEntry < ' a , K : ' a , V : ' a > {
460458 key : K ,
@@ -474,8 +472,6 @@ impl<K: Debug + Ord, V> Debug for VacantEntry<'_, K, V> {
474472
475473/// A view into an occupied entry in a `BTreeMap`.
476474/// It is part of the [`Entry`] enum.
477- ///
478- /// [`Entry`]: enum.Entry.html
479475#[ stable( feature = "rust1" , since = "1.0.0" ) ]
480476pub struct OccupiedEntry < ' a , K : ' a , V : ' a > {
481477 handle : Handle < NodeRef < marker:: Mut < ' a > , K , V , marker:: LeafOrInternal > , marker:: KV > ,
@@ -815,7 +811,7 @@ impl<K: Ord, V> BTreeMap<K, V> {
815811 /// types that can be `==` without being identical. See the [module-level
816812 /// documentation] for more.
817813 ///
818- /// [module-level documentation]: index.html #insert-and-complex-keys
814+ /// [module-level documentation]: crate::collections #insert-and-complex-keys
819815 ///
820816 /// # Examples
821817 ///
@@ -2554,7 +2550,7 @@ impl<'a, K: Ord, V> OccupiedEntry<'a, K, V> {
25542550 /// If you need a reference to the `OccupiedEntry` that may outlive the
25552551 /// destruction of the `Entry` value, see [`into_mut`].
25562552 ///
2557- /// [`into_mut`]: #method. into_mut
2553+ /// [`into_mut`]: OccupiedEntry:: into_mut
25582554 ///
25592555 /// # Examples
25602556 ///
@@ -2584,7 +2580,7 @@ impl<'a, K: Ord, V> OccupiedEntry<'a, K, V> {
25842580 ///
25852581 /// If you need multiple references to the `OccupiedEntry`, see [`get_mut`].
25862582 ///
2587- /// [`get_mut`]: #method. get_mut
2583+ /// [`get_mut`]: OccupiedEntry:: get_mut
25882584 ///
25892585 /// # Examples
25902586 ///
0 commit comments