diff options
author | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-05-04 11:31:17 +0200 |
---|---|---|
committer | Lukas Rytz <lukas.rytz@typesafe.com> | 2015-05-04 11:31:17 +0200 |
commit | 354383d6f962b1e624e076c293f95c3d0c3af981 (patch) | |
tree | 411ce8b0b870b1405b82aa26f6c8069602d16a72 /src/library | |
parent | 6c75bc40c71d8688fb62759b6e1a23e5e0ba5e93 (diff) | |
parent | 7385a84bb9b3c71d5a7a78de94f23f836ecc3a61 (diff) | |
download | scala-354383d6f962b1e624e076c293f95c3d0c3af981.tar.gz scala-354383d6f962b1e624e076c293f95c3d0c3af981.tar.bz2 scala-354383d6f962b1e624e076c293f95c3d0c3af981.zip |
Merge pull request #4467 from nafg/patch-1
Fix scaladoc of Try#failed
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/util/Try.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/library/scala/util/Try.scala b/src/library/scala/util/Try.scala index b0cf122f2a..f65c77f5a0 100644 --- a/src/library/scala/util/Try.scala +++ b/src/library/scala/util/Try.scala @@ -164,8 +164,8 @@ sealed abstract class Try[+T] { def flatten[U](implicit ev: T <:< Try[U]): Try[U] /** - * Completes this `Try` with an exception wrapped in a `Success`. The exception is either the exception that the - * `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`. */ def failed: Try[Throwable] |