summaryrefslogtreecommitdiff
path: root/src/library/scala/util/Either.scala
diff options
context:
space:
mode:
authorxuwei-k <6b656e6a69@gmail.com>2012-07-12 23:41:02 +0900
committerxuwei-k <6b656e6a69@gmail.com>2012-07-13 00:05:12 +0900
commit31773a248dc685a76f5318e41dde3cac7033e4d2 (patch)
treeb5440a022abdd637bbe52f01b8c073e42ff39a60 /src/library/scala/util/Either.scala
parent758f0a7ac5366c9748739032383456b6e7727d37 (diff)
downloadscala-31773a248dc685a76f5318e41dde3cac7033e4d2.tar.gz
scala-31773a248dc685a76f5318e41dde3cac7033e4d2.tar.bz2
scala-31773a248dc685a76f5318e41dde3cac7033e4d2.zip
fix Right,Left and Either scaladoc links
Diffstat (limited to 'src/library/scala/util/Either.scala')
-rw-r--r--src/library/scala/util/Either.scala12
1 files changed, 6 insertions, 6 deletions
diff --git a/src/library/scala/util/Either.scala b/src/library/scala/util/Either.scala
index 1a2e2d48d5..dcfdc16d33 100644
--- a/src/library/scala/util/Either.scala
+++ b/src/library/scala/util/Either.scala
@@ -13,12 +13,12 @@ package scala.util
import language.implicitConversions
/** Represents a value of one of two possible types (a disjoint union.)
- * Instances of Either are either an instance of [[scala.Left]] or [[scala.Right]].
+ * Instances of Either are either an instance of [[scala.util.Left]] or [[scala.util.Right]].
*
* A common use of Either is as an alternative to [[scala.Option]] for dealing
* with possible missing values. In this usage, [[scala.None]] is replaced
- * with a [[scala.Left]] which can contain useful information.
- * [[scala.Right]] takes the place of [[scala.Some]]. Convention dictates
+ * with a [[scala.util.Left]] which can contain useful information.
+ * [[scala.util.Right]] takes the place of [[scala.Some]]. Convention dictates
* that Left is used for failure and Right is used for success.
*
* For example, you could use ``Either[String, Int]`` to detect whether a
@@ -181,7 +181,7 @@ sealed abstract class Either[+A, +B] {
}
/**
- * The left side of the disjoint union, as opposed to the [[scala.Right]] side.
+ * The left side of the disjoint union, as opposed to the [[scala.util.Right]] side.
*
* @author <a href="mailto:research@workingmouse.com">Tony Morris</a>, Workingmouse
* @version 1.0, 11/10/2008
@@ -192,7 +192,7 @@ final case class Left[+A, +B](a: A) extends Either[A, B] {
}
/**
- * The right side of the disjoint union, as opposed to the [[scala.Left]] side.
+ * The right side of the disjoint union, as opposed to the [[scala.util.Left]] side.
*
* @author <a href="mailto:research@workingmouse.com">Tony Morris</a>, Workingmouse
* @version 1.0, 11/10/2008
@@ -283,7 +283,7 @@ object Either {
* Right(12).left.get // NoSuchElementException
* }}}
*
- * @throws Predef.NoSuchElementException if the projection is [[scala.Right]]
+ * @throws Predef.NoSuchElementException if the projection is [[scala.util.Right]]
*/
def get = e match {
case Left(a) => a