Skip to content

Commit 52e68db

Browse files
committed
Make Range.numRangeElements private again.
It was made private in 4c2f6f3, but it was reverted to public in the big collection overhaul, in 878e7d3. I believe this was an accident, so here is a commit to make it private again.
1 parent e1d4216 commit 52e68db

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/library/scala/collection/immutable/Range.scala

+1-1
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ sealed abstract class Range(
7171
|| (start == end && !isInclusive)
7272
)
7373

74-
val numRangeElements: Int = {
74+
private val numRangeElements: Int = {
7575
if (step == 0) throw new IllegalArgumentException("step cannot be 0.")
7676
else if (isEmpty) 0
7777
else {

0 commit comments

Comments
 (0)