diff options
author | Paul Phillips <paulp@improving.org> | 2012-09-15 14:09:46 -0700 |
---|---|---|
committer | Paul Phillips <paulp@improving.org> | 2012-09-15 14:56:31 -0700 |
commit | ea0d891f238082089be037a0752215d9d21893cf (patch) | |
tree | b166354f6621cf4adec4cf722b62fbdb5a2000d5 /src/library/scala/collection/immutable/List.scala | |
parent | 24580ac84242679619d27f20258078dd012c120a (diff) | |
download | scala-ea0d891f238082089be037a0752215d9d21893cf.tar.gz scala-ea0d891f238082089be037a0752215d9d21893cf.tar.bz2 scala-ea0d891f238082089be037a0752215d9d21893cf.zip |
More relative path elimination.
Some names I missed in 55b609458fd .
How one might know when one is done:
mkdir scratch && cd scratch
mkdir annotation beans collection compat concurrent io \
math parallel ref reflect runtime scala sys testing \
text tools util xml
scalac $(find ../src/library -name '*.scala')
Until recently that would fail with about a billion errors. When it
compiles, that's when you're done. And that's where this commit
takes us, for src/library at least.
Diffstat (limited to 'src/library/scala/collection/immutable/List.scala')
-rw-r--r-- | src/library/scala/collection/immutable/List.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/immutable/List.scala b/src/library/scala/collection/immutable/List.scala index b77e8b4c7c..7a489bb100 100644 --- a/src/library/scala/collection/immutable/List.scala +++ b/src/library/scala/collection/immutable/List.scala @@ -229,7 +229,7 @@ sealed abstract class List[+A] extends AbstractSeq[A] * }}} */ override def slice(from: Int, until: Int): List[A] = { - val lo = math.max(from, 0) + val lo = scala.math.max(from, 0) if (until <= lo || isEmpty) Nil else this drop lo take (until - lo) } |