We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents a002630 + 52e68db commit 4562cc5Copy full SHA for 4562cc5
src/library/scala/collection/immutable/Range.scala
@@ -71,7 +71,7 @@ sealed abstract class Range(
71
|| (start == end && !isInclusive)
72
)
73
74
- val numRangeElements: Int = {
+ private val numRangeElements: Int = {
75
if (step == 0) throw new IllegalArgumentException("step cannot be 0.")
76
else if (isEmpty) 0
77
else {
0 commit comments