summaryrefslogtreecommitdiff
path: root/src/library/scala/text/Document.scala
diff options
context:
space:
mode:
authormichelou <michelou@epfl.ch>2007-06-08 12:08:26 +0000
committermichelou <michelou@epfl.ch>2007-06-08 12:08:26 +0000
commit540c308ca6d7ef2370bfaa8d1b0870003a2c1037 (patch)
treed60f80b7f2f3ecd0033e97e9645a0f23bd9c2e16 /src/library/scala/text/Document.scala
parent278f89bf2ffe945028056d8d4e120bae47598e09 (diff)
downloadscala-540c308ca6d7ef2370bfaa8d1b0870003a2c1037.tar.gz
scala-540c308ca6d7ef2370bfaa8d1b0870003a2c1037.tar.bz2
scala-540c308ca6d7ef2370bfaa8d1b0870003a2c1037.zip
removed primitive type aliases from the standar...
removed primitive type aliases from the standard library
Diffstat (limited to 'src/library/scala/text/Document.scala')
-rw-r--r--src/library/scala/text/Document.scala5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/library/scala/text/Document.scala b/src/library/scala/text/Document.scala
index 0808714c9d..39aea9ec81 100644
--- a/src/library/scala/text/Document.scala
+++ b/src/library/scala/text/Document.scala
@@ -25,10 +25,9 @@ case class DocCons(hd: Document, tl: Document) extends Document
* A basic pretty-printing library, based on Lindig's strict version
* of Wadler's adaptation of Hughes' pretty-printer.
*
- * @version 1.0
* @author Michel Schinz
+ * @version 1.0
*/
-
abstract class Document {
def ::(hd: Document): Document = DocCons(hd, this)
def ::(hd: String): Document = DocCons(DocText(hd), this)
@@ -45,7 +44,7 @@ abstract class Document {
def format(width: Int, writer: Writer) {
type FmtState = (Int, Boolean, Document)
- def fits(w: Int, state: List[FmtState]): boolean = state match {
+ def fits(w: Int, state: List[FmtState]): Boolean = state match {
case _ if w < 0 =>
false
case List() =>