summaryrefslogtreecommitdiff
path: root/src/library/scala/collection/immutable/TrieIterator.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2011-09-19 13:35:16 +0000
committerPaul Phillips <paulp@improving.org>2011-09-19 13:35:16 +0000
commit5637b22d21ccc1abe70e16e87c1607cd3acb9b3c (patch)
treef62eb05f94bf22d0091f65002e7fc98cdc04e1ae /src/library/scala/collection/immutable/TrieIterator.scala
parentf7e038361ae6b1958985a20e30bfa567d6a51b16 (diff)
downloadscala-5637b22d21ccc1abe70e16e87c1607cd3acb9b3c.tar.gz
scala-5637b22d21ccc1abe70e16e87c1607cd3acb9b3c.tar.bz2
scala-5637b22d21ccc1abe70e16e87c1607cd3acb9b3c.zip
Deprecation and convention adherence patrol.
Iterators should have def next(), not def next. Clearing a mutable structure should be done with clear(), not clear. And etc. No review.
Diffstat (limited to 'src/library/scala/collection/immutable/TrieIterator.scala')
-rw-r--r--src/library/scala/collection/immutable/TrieIterator.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/immutable/TrieIterator.scala b/src/library/scala/collection/immutable/TrieIterator.scala
index c2cd0b2efd..7c36ed14ce 100644
--- a/src/library/scala/collection/immutable/TrieIterator.scala
+++ b/src/library/scala/collection/immutable/TrieIterator.scala
@@ -92,7 +92,7 @@ private[collection] abstract class TrieIterator[+T](elems: Array[Iterable[T]]) e
}
def hasNext = (subIter ne null) || depth >= 0
- def next: T = {
+ def next(): T = {
if (subIter ne null) {
val el = subIter.next
if (!subIter.hasNext)