Skip to content

Commit

Permalink
Change function name to update
Browse files Browse the repository at this point in the history
  • Loading branch information
marmbrus committed Mar 14, 2014
1 parent 8bfd973 commit f5c4783
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ case class MutablePair[@specialized(Int, Long, Double, Char, Boolean/*, AnyRef*/
def this() = this(null.asInstanceOf[T1], null.asInstanceOf[T2])

/** Updates this pair with new values and returns itself */
def apply(n1: T1, n2: T2): MutablePair[T1, T2] = {
def update(n1: T1, n2: T2): MutablePair[T1, T2] = {
_1 = n1
_2 = n2
this
Expand Down

0 comments on commit f5c4783

Please sign in to comment.