Skip to content

Commit

Permalink
Use square bracket for left side of range
Browse files Browse the repository at this point in the history
  • Loading branch information
tedyu committed Sep 11, 2015
1 parent 0e86ae8 commit a293906
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -292,7 +292,7 @@ private[spark] class ExternalSorter[K, V, C](
while (it.hasNext) {
val partitionId = it.nextPartition()
require(partitionId >= 0 && partitionId < numPartitions,
s"partition Id: ${partitionId} should be in the range (0, ${numPartitions})")
s"partition Id: ${partitionId} should be in the range [0, ${numPartitions})")
it.writeNext(writer)
elementsPerPartition(partitionId) += 1
objectsWritten += 1
Expand Down

0 comments on commit a293906

Please sign in to comment.