We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 6c75bc4 + 7385a84 commit 354383dCopy full SHA for 354383d
src/library/scala/util/Try.scala
@@ -164,8 +164,8 @@ sealed abstract class Try[+T] {
164
def flatten[U](implicit ev: T <:< Try[U]): Try[U]
165
166
/**
167
- * Completes this `Try` with an exception wrapped in a `Success`. The exception is either the exception that the
168
- * `Try` failed with (if a `Failure`) or an `UnsupportedOperationException`.
+ * Inverts this `Try`. If this is a `Failure`, returns its exception wrapped in a `Success`.
+ * If this is a `Success`, returns a `Failure` containing an `UnsupportedOperationException`.
169
*/
170
def failed: Try[Throwable]
171
0 commit comments