Skip to content

Commit da4fda4

Browse files
committed
Remove unnecessary mut in docs causing test failures.
1 parent 04436fb commit da4fda4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libcollections/binary_heap.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -660,7 +660,7 @@ impl<T: Ord> BinaryHeap<T> {
660660
///
661661
/// ```
662662
/// use std::collections::BinaryHeap;
663-
/// let mut heap = BinaryHeap::from(vec![1, 3]);
663+
/// let heap = BinaryHeap::from(vec![1, 3]);
664664
///
665665
/// assert_eq!(heap.len(), 2);
666666
/// ```

0 commit comments

Comments
 (0)