Skip to content

Commit 362cf65

Browse files
committed
---
yaml --- r: 35583 b: refs/heads/master c: 161d289 h: refs/heads/master i: 35581: 72dcfca 35579: 11fbca6 35575: d5d606b 35567: 5260849 35551: cdd8804 35519: 319d97c 35455: fdecfd9 35327: 5441bcc v: v3
1 parent 6492cac commit 362cf65

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

[refs]

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
---
2-
refs/heads/master: 8cbf817c2c9b541d4711d0d67e74be218a440640
2+
refs/heads/master: 161d289cc75259b49db773a6890a8848afd81ffa
33
refs/heads/snap-stage1: e33de59e47c5076a89eadeb38f4934f58a3618a6
44
refs/heads/snap-stage3: eb8fd119c65c67f3b1b8268cc7341c22d39b7b61
55
refs/heads/try: d324a424d8f84b1eb049b12cf34182bda91b0024

trunk/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)