Remove unnecessary mut in docs causing test failures.
This commit is contained in:
parent
04436fb65b
commit
da4fda44e7
@ -660,7 +660,7 @@ impl<T: Ord> BinaryHeap<T> {
|
||||
///
|
||||
/// ```
|
||||
/// use std::collections::BinaryHeap;
|
||||
/// let mut heap = BinaryHeap::from(vec![1, 3]);
|
||||
/// let heap = BinaryHeap::from(vec![1, 3]);
|
||||
///
|
||||
/// assert_eq!(heap.len(), 2);
|
||||
/// ```
|
||||
|
Loading…
Reference in New Issue
Block a user