Skip to content

Commit ac695aa

Browse files
thestingerbrson
authored andcommitted
priority_queue: add docstring for from_vec
1 parent b3463ea commit ac695aa

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/libstd/priority_queue.rs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,7 @@ impl <T: Ord> PriorityQueue<T> {
9393
q.to_vec()
9494
}
9595

96+
/// Create a PriorityQueue from a vector (heapify)
9697
static pub pure fn from_vec(xs: ~[T]) -> PriorityQueue<T> {
9798
let mut q = PriorityQueue{data: xs,};
9899
let mut n = q.len() / 2;

0 commit comments

Comments
 (0)