@@ -64,11 +64,12 @@ where
6464 /// # Panics
6565 /// This method panics:
6666 /// * if the `node` is not in the queue; or
67- /// * see [`PriorityQueueDecKey::try_decrease_key_or_push`] for a variant which pushes the
68- /// `(node, new_key)` pair if the `node` is absent, rather than panicking;
69- /// * if `decreased_key` is strictly larger than key of the `node` in the queue,
70- /// * see [`PriorityQueueDecKey::try_decrease_key`] for a variant which does nothing
71- /// if the new key is strictly larger than key of the `node` in the queue, rather than panicking.
67+ /// (see also [`try_decrease_key_or_push`])
68+ /// * if `decreased_key` is strictly larger than key of the `node` in the queue
69+ /// (see also [`try_decrease_key`]).
70+ ///
71+ /// [`try_decrease_key_or_push`]: PriorityQueueDecKey::try_decrease_key_or_push
72+ /// [`try_decrease_key`]: PriorityQueueDecKey::try_decrease_key
7273 ///
7374 /// # Examples
7475 ///
9798 ///
9899 /// # Panics
99100 /// This method panics if:
100- /// * the `node` is not in the queue,
101- /// * see [`PriorityQueueDecKey::update_key_or_push`] for a variant which pushes the
102- /// `(node, new_key)` pair if the `node` is absent, rather than panicking.
101+ /// * the `node` is not in the queue (see also [`update_key_or_push`]).
102+ ///
103+ /// [`update_key_or_push`]: PriorityQueueDecKey::update_key_or_push
103104 ///
104105 /// # Examples
105106 ///
@@ -170,7 +171,7 @@ where
170171
171172 /// If the `node` is present in the queue:
172173 /// * decreases key of the `node` to the given `decreased_key`; `decreased_key` is expected to be less than or equal
173- /// to the prior key;
174+ /// to the prior key;
174175 ///
175176 /// otherwise:
176177 /// * pushes the new (node, key) pair to the queue.
@@ -182,11 +183,11 @@ where
182183 ///
183184 /// # Panics
184185 /// This method panics
185- /// * if the `node` is in the queue; however, its current key is strictly less than the provided `key`;
186- /// * see [`PriorityQueueDecKey:: update_key_or_push`] for a variant which increases the key
187- /// if the new key is strictly larger than key of the `node` in the queue, rather than panicking; or
188- /// * see [`PriorityQueueDecKey::try_decrease_key_or_push`] for a variant which does nothing
189- /// if the new key is strictly larger than key of the `node` in the queue, rather than panicking.
186+ /// * if the `node` is in the queue; however, its current key is strictly less than the provided `key`
187+ /// ( see also [` update_key_or_push`] and [`try_decrease_key_or_push`]).
188+ ///
189+ /// [`update_key_or_push`]: PriorityQueueDecKey::update_key_or_push
190+ /// [`try_decrease_key_or_push`]: PriorityQueueDecKey::try_decrease_key_or_push
190191 ///
191192 /// # Examples
192193 ///
0 commit comments