@@ -159,9 +159,9 @@ use super::SpecExtend;
159
159
/// This will be a max-heap.
160
160
///
161
161
/// It is a logic error for an item to be modified in such a way that the
162
- /// item's ordering relative to any other item, as determined by the `Ord`
162
+ /// item's ordering relative to any other item, as determined by the [ `Ord`]
163
163
/// trait, changes while it is in the heap. This is normally only possible
164
- /// through `Cell`, `RefCell`, global state, I/O, or unsafe code. The
164
+ /// through [ `Cell`], [ `RefCell`] , global state, I/O, or unsafe code. The
165
165
/// behavior resulting from such a logic error is not specified, but will
166
166
/// not result in undefined behavior. This could include panics, incorrect
167
167
/// results, aborts, memory leaks, and non-termination.
@@ -219,7 +219,7 @@ use super::SpecExtend;
219
219
///
220
220
/// ## Min-heap
221
221
///
222
- /// Either `std ::cmp::Reverse` or a custom `Ord` implementation can be used to
222
+ /// Either [`core ::cmp::Reverse`] or a custom [ `Ord`] implementation can be used to
223
223
/// make `BinaryHeap` a min-heap. This makes `heap.pop()` return the smallest
224
224
/// value instead of the greatest one.
225
225
///
@@ -250,6 +250,10 @@ use super::SpecExtend;
250
250
/// The value for `push` is an expected cost; the method documentation gives a
251
251
/// more detailed analysis.
252
252
///
253
+ /// [`core::cmp::Reverse`]: core::cmp::Reverse
254
+ /// [`Ord`]: core::cmp::Ord
255
+ /// [`Cell`]: core::cell::Cell
256
+ /// [`RefCell`]: core::cell::RefCell
253
257
/// [push]: BinaryHeap::push
254
258
/// [pop]: BinaryHeap::pop
255
259
/// [peek]: BinaryHeap::peek
0 commit comments