Remove unnecessary mut in docs causing test failures.

This commit is contained in:
Nathan Kleyn 2016-03-10 11:40:31 +00:00
parent 04436fb65b
commit da4fda44e7

View File

@ -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);
/// ```