Scala Programming Language
  1. Scala Programming Language
  2. SI-5168

Incorrect ScalaDoc for ProductN.productElement

    Details

      Description

      All the scala.ProductN include this in their documentation for productElement(Int)Any:

      returns same as ._(n+1), for example productElement(1) is the same as ._1.

      The example is incorrect... should be "same as ._2"

      I thinkg the documentation in scala.Product is better – so just removing the scaladoc from genprod would be fine.

        Activity

        Show
        Kato Kazuyoshi added a comment - https://github.com/scala/scala/commit/c3b0113f31ca80e08fd609f8b7925dc456456b95

          People

          • Assignee:
            Unassigned
            Reporter:
            Jordi Salvat i Alabart
          • Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development