This page is no longer maintained — Please continue to the home page at www.scala-lang.org

PrettyPrinter: description and source differ

1 reply
Ryszard Kubiak
Joined: 2011-05-29,
User offline. Last seen 42 years 45 weeks ago.

Hi all,

I am investigating the code of Scala's XML PrettyPrinter. There is
probably something
wrong with the content of:

http://www.scala-lang.org/api/current/index.html#scala.xml.PrettyPrinter

The link to the source code leads to a code with:

case class Para(s: String) extends Item

while the description says:

case class Para (s: String) extends Item with Product with Serializable

Is it really so or is there something wrong with my browser?

Ryszard

dcsobral
Joined: 2009-04-23,
User offline. Last seen 38 weeks 5 days ago.
Re: PrettyPrinter: description and source differ

All case classes extend Product and Serializable automatically.

On Sun, May 29, 2011 at 17:48, Ryszard Kubiak wrote:
> Hi all,
>
> I am investigating the code of Scala's XML PrettyPrinter. There is probably
> something
> wrong with the content of:
>
>  http://www.scala-lang.org/api/current/index.html#scala.xml.PrettyPrinter
>
> The link to the source code leads to a code with:
>
>  case class Para(s: String) extends Item
>
> while the description says:
>
>  case class Para (s: String) extends Item with Product with Serializable
>
> Is it really so or is there something wrong with my browser?
>
> Ryszard
>

Copyright © 2012 École Polytechnique Fédérale de Lausanne (EPFL), Lausanne, Switzerland