summaryrefslogtreecommitdiff
path: root/src/library/scala/Product2.scala
diff options
context:
space:
mode:
authorPaul Phillips <paulp@improving.org>2010-10-16 19:02:41 +0000
committerPaul Phillips <paulp@improving.org>2010-10-16 19:02:41 +0000
commit5cdb213d7d24ae357c518823e1054cb302b250eb (patch)
tree90812d869840df297b4fa9afa0a7dae43ddc1d9a /src/library/scala/Product2.scala
parent87134363a20bc81297037d8858ee88e961f255f9 (diff)
downloadscala-5cdb213d7d24ae357c518823e1054cb302b250eb.tar.gz
scala-5cdb213d7d24ae357c518823e1054cb302b250eb.tar.bz2
scala-5cdb213d7d24ae357c518823e1054cb302b250eb.zip
Documentation being generated by genprod was pr...
Documentation being generated by genprod was pretty busted both in terms of formatting and correctness. Spruced it up. Eliminated some of the more distracting HTML entities in compiler source. No review.
Diffstat (limited to 'src/library/scala/Product2.scala')
-rw-r--r--src/library/scala/Product2.scala9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/library/scala/Product2.scala b/src/library/scala/Product2.scala
index 720fb1d08e..812b60a8a5 100644
--- a/src/library/scala/Product2.scala
+++ b/src/library/scala/Product2.scala
@@ -6,8 +6,7 @@
** |/ **
\* */
-
-// generated by genprod on Thu Sep 16 10:52:35 PDT 2010
+// generated by genprod on Sat Oct 16 11:19:09 PDT 2010
package scala
@@ -29,14 +28,16 @@ trait Product2[@specialized(Int, Long, Double) +T1, @specialized(Int, Long, Doub
*/
override def productArity = 2
+
/**
- * Returns the n-th projection of this product if 0&lt;=n&lt;arity,
- * otherwise null.
+ * Returns the n-th projection of this product if 0 < n <= productArity,
+ * otherwise throws IndexOutOfBoundsException.
*
* @param n number of the projection to be returned
* @return same as _(n+1)
* @throws IndexOutOfBoundsException
*/
+
@throws(classOf[IndexOutOfBoundsException])
override def productElement(n: Int) = n match {
case 0 => _1