diff options
author | xuwei-k <6b656e6a69@gmail.com> | 2012-07-12 23:41:02 +0900 |
---|---|---|
committer | xuwei-k <6b656e6a69@gmail.com> | 2012-07-13 00:05:12 +0900 |
commit | 31773a248dc685a76f5318e41dde3cac7033e4d2 (patch) | |
tree | b5440a022abdd637bbe52f01b8c073e42ff39a60 /src/library | |
parent | 758f0a7ac5366c9748739032383456b6e7727d37 (diff) | |
download | scala-31773a248dc685a76f5318e41dde3cac7033e4d2.tar.gz scala-31773a248dc685a76f5318e41dde3cac7033e4d2.tar.bz2 scala-31773a248dc685a76f5318e41dde3cac7033e4d2.zip |
fix Right,Left and Either scaladoc links
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/Option.scala | 8 | ||||
-rw-r--r-- | src/library/scala/util/Either.scala | 12 | ||||
-rw-r--r-- | src/library/scala/util/Try.scala | 2 |
3 files changed, 11 insertions, 11 deletions
diff --git a/src/library/scala/Option.scala b/src/library/scala/Option.scala index c461b413d6..f651461fe6 100644 --- a/src/library/scala/Option.scala +++ b/src/library/scala/Option.scala @@ -268,9 +268,9 @@ sealed abstract class Option[+A] extends Product with Serializable { def toList: List[A] = if (isEmpty) List() else List(this.get) - /** Returns a [[scala.Left]] containing the given + /** Returns a [[scala.util.Left]] containing the given * argument `left` if this $option is empty, or - * a [[scala.Right]] containing this $option's value if + * a [[scala.util.Right]] containing this $option's value if * this is nonempty. * * @param left the expression to evaluate and return if this is empty @@ -279,9 +279,9 @@ sealed abstract class Option[+A] extends Product with Serializable { @inline final def toRight[X](left: => X) = if (isEmpty) Left(left) else Right(this.get) - /** Returns a [[scala.Right]] containing the given + /** Returns a [[scala.util.Right]] containing the given * argument `right` if this is empty, or - * a [[scala.Left]] containing this $option's value + * a [[scala.util.Left]] containing this $option's value * if this $option is nonempty. * * @param right the expression to evaluate and return if this is empty 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 diff --git a/src/library/scala/util/Try.scala b/src/library/scala/util/Try.scala index 988f68bc18..9475a05d5a 100644 --- a/src/library/scala/util/Try.scala +++ b/src/library/scala/util/Try.scala @@ -16,7 +16,7 @@ import scala.util.control.NonFatal /** * The `Try` type represents a computation that may either result in an exception, or return a - * successfully computed value. It's similar to, but semantically different from the [[scala.Either]] type. + * successfully computed value. It's similar to, but semantically different from the [[scala.util.Either]] type. * * Instances of `Try[T]`, are either an instance of [[scala.util.Success]][T] or [[scala.util.Failure]][T]. * |