summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/library/scala/util/Try.scala2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/util/Try.scala b/src/library/scala/util/Try.scala
index 487ddaced3..c834f6d514 100644
--- a/src/library/scala/util/Try.scala
+++ b/src/library/scala/util/Try.scala
@@ -142,7 +142,7 @@ sealed abstract class Try[+T] {
/** Completes this `Try` by applying the function `f` to this if this is of type `Failure`, or conversely, by applying
* `s` if this is a `Success`.
*/
- def transform[U](f: Throwable => Try[U], s: T => Try[U]): Try[U] = this match {
+ def transform[U](s: T => Try[U], f: Throwable => Try[U]): Try[U] = this match {
case Success(v) => s(v)
case Failure(e) => f(e)
}