diff options
author | Sean McDirmid <sean.mcdirmid@gmail.com> | 2007-12-04 00:04:37 +0000 |
---|---|---|
committer | Sean McDirmid <sean.mcdirmid@gmail.com> | 2007-12-04 00:04:37 +0000 |
commit | cc843b480d553ef488921deea45580c7a8395746 (patch) | |
tree | dbd8696c0fa37a49db4d7bbddebb18f1cf38f444 | |
parent | 52ccc329cb5d5398c4d4dca21a34096991a13cd5 (diff) | |
download | scala-cc843b480d553ef488921deea45580c7a8395746.tar.gz scala-cc843b480d553ef488921deea45580c7a8395746.tar.bz2 scala-cc843b480d553ef488921deea45580c7a8395746.zip |
Annotated type of to to be Range instead its In...
Annotated type of to to be Range instead its Inclusive sub-class.
-rw-r--r-- | src/library/scala/runtime/RichInt.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/runtime/RichInt.scala b/src/library/scala/runtime/RichInt.scala index dd6956e122..6becda3a59 100644 --- a/src/library/scala/runtime/RichInt.scala +++ b/src/library/scala/runtime/RichInt.scala @@ -27,7 +27,7 @@ final class RichInt(start: Int) extends Proxy with Ordered[Int] { def until(end: Int, step: Int): Range = Iterator.range(start, end, step) /** like <code>until</code>, but includes the last index */ - def to(end: Int) = until(end).inclusive + def to(end: Int) : Range = until(end).inclusive def min(that: Int): Int = if (start < that) start else that def max(that: Int): Int = if (start > that) start else that |