Skip to content

Commit 161d289

Browse files
committed
Long lines
1 parent 8cbf817 commit 161d289

File tree

1 file changed

+7
-6
lines changed

1 file changed

+7
-6
lines changed

src/libstd/priority_queue.rs

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -87,7 +87,8 @@ impl <T: Ord> PriorityQueue<T> {
8787
#[cfg(stage3)]
8888
pure fn to_vec(self) -> ~[T] { let PriorityQueue{data: v} = self; v }
8989

90-
/// Consume the PriorityQueue and return a vector in sorted (ascending) order
90+
/// Consume the PriorityQueue and return a vector in sorted
91+
/// (ascending) order
9192
#[cfg(stage0)]
9293
pure fn to_sorted_vec(self) -> ~[T] { fail }
9394
#[cfg(stage1)]
@@ -115,11 +116,11 @@ impl <T: Ord> PriorityQueue<T> {
115116
q
116117
}
117118

118-
// The implementations of siftup and siftdown use unsafe blocks in order to
119-
// move an element out of the vector (leaving behind a junk element), shift
120-
// along the others and move it back into the vector over the junk element.
121-
// This reduces the constant factor compared to using swaps, which involves
122-
// twice as many moves.
119+
// The implementations of siftup and siftdown use unsafe blocks in
120+
// order to move an element out of the vector (leaving behind a
121+
// junk element), shift along the others and move it back into the
122+
// vector over the junk element. This reduces the constant factor
123+
// compared to using swaps, which involves twice as many moves.
123124

124125
priv fn siftup(&mut self, start: uint, pos: uint) unsafe {
125126
let mut pos = pos;

0 commit comments

Comments
 (0)