diff options
author | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-04-09 17:22:58 +0000 |
---|---|---|
committer | Aleksandar Pokopec <aleksandar.prokopec@epfl.ch> | 2010-04-09 17:22:58 +0000 |
commit | 0d80fa2d50c287837f45fb26e8ab3b69e278a9bb (patch) | |
tree | df8de586600c3493252b318e08a16674d4240d7c /src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala | |
parent | 2b59cbaafa54f8752e9a00858f8d3bd1474ba59b (diff) | |
download | scala-0d80fa2d50c287837f45fb26e8ab3b69e278a9bb.tar.gz scala-0d80fa2d50c287837f45fb26e8ab3b69e278a9bb.tar.bz2 scala-0d80fa2d50c287837f45fb26e8ab3b69e278a9bb.zip |
Work on mutable collections docs.
Diffstat (limited to 'src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala')
-rw-r--r-- | src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala b/src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala index 9d18846252..933b3b41a4 100644 --- a/src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala +++ b/src/library/scala/collection/mutable/SynchronizedPriorityQueue.scala @@ -12,7 +12,7 @@ package scala.collection package mutable -/** This class implements synchronized priority queues using a heap. +/** This class implements synchronized priority queues using a binary heap. * The elements of the queue have to be ordered in terms of the * <code>Ordered[T]</code> class. * @@ -39,13 +39,13 @@ class SynchronizedPriorityQueue[A](implicit ord: Ordering[A]) extends PriorityQu this } - /** Adds all elements provided by an iterator into the priority queue. + /** Adds all elements of a traversable object into the priority queue. * - * @param it an iterator + * @param xs a traversable object */ - override def ++=(it: TraversableOnce[A]): this.type = { + override def ++=(xs: TraversableOnce[A]): this.type = { synchronized { - super.++=(it) + super.++=(xs) } this } |