diff options
author | Lex Spoon <lex@lexspoon.org> | 2007-03-24 15:07:02 +0000 |
---|---|---|
committer | Lex Spoon <lex@lexspoon.org> | 2007-03-24 15:07:02 +0000 |
commit | 4827f6b33f53594c5dcf2ab66b9cdf7419c82897 (patch) | |
tree | b501689bc2b2adcbfdcba10dbb4750445f2cee73 /src/library | |
parent | ebde4dd2e125045a927eb5bd1441d3c9da3f7668 (diff) | |
download | scala-4827f6b33f53594c5dcf2ab66b9cdf7419c82897.tar.gz scala-4827f6b33f53594c5dcf2ab66b9cdf7419c82897.tar.bz2 scala-4827f6b33f53594c5dcf2ab66b9cdf7419c82897.zip |
fixed Seq.toString
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/Seq.scala | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/library/scala/Seq.scala b/src/library/scala/Seq.scala index ea62218bea..948f29bb71 100644 --- a/src/library/scala/Seq.scala +++ b/src/library/scala/Seq.scala @@ -265,7 +265,8 @@ trait Seq[+A] extends AnyRef with PartialFunction[Int, A] with Iterable[A] { * * @return a string representation of this sequence. */ - override def toString() = mkString("", ",", "") + override def toString() = + stringPrefix + "(" + mkString(",") + ")" /** Defines the prefix of the string representation. |