Skip to content

Commit f5c4783

Browse files
committed
Change function name to update
1 parent 8bfd973 commit f5c4783

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/scala/org/apache/spark/util/MutablePair.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ case class MutablePair[@specialized(Int, Long, Double, Char, Boolean/*, AnyRef*/
3333
def this() = this(null.asInstanceOf[T1], null.asInstanceOf[T2])
3434

3535
/** Updates this pair with new values and returns itself */
36-
def apply(n1: T1, n2: T2): MutablePair[T1, T2] = {
36+
def update(n1: T1, n2: T2): MutablePair[T1, T2] = {
3737
_1 = n1
3838
_2 = n2
3939
this

0 commit comments

Comments
 (0)