From 161d289cc75259b49db773a6890a8848afd81ffa Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 16 Dec 2012 19:56:09 -0800 Subject: [PATCH] Long lines --- src/libstd/priority_queue.rs | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/libstd/priority_queue.rs b/src/libstd/priority_queue.rs index 9a4549dcf65..59d15c8b4c2 100644 --- a/src/libstd/priority_queue.rs +++ b/src/libstd/priority_queue.rs @@ -87,7 +87,8 @@ impl PriorityQueue { #[cfg(stage3)] pure fn to_vec(self) -> ~[T] { let PriorityQueue{data: v} = self; v } - /// Consume the PriorityQueue and return a vector in sorted (ascending) order + /// Consume the PriorityQueue and return a vector in sorted + /// (ascending) order #[cfg(stage0)] pure fn to_sorted_vec(self) -> ~[T] { fail } #[cfg(stage1)] @@ -115,11 +116,11 @@ impl PriorityQueue { q } - // The implementations of siftup and siftdown use unsafe blocks in order to - // move an element out of the vector (leaving behind a junk element), shift - // along the others and move it back into the vector over the junk element. - // This reduces the constant factor compared to using swaps, which involves - // twice as many moves. + // The implementations of siftup and siftdown use unsafe blocks in + // order to move an element out of the vector (leaving behind a + // junk element), shift along the others and move it back into the + // vector over the junk element. This reduces the constant factor + // compared to using swaps, which involves twice as many moves. priv fn siftup(&mut self, start: uint, pos: uint) unsafe { let mut pos = pos;