diff options
author | Iulian Dragos <jaguarul@gmail.com> | 2008-08-12 16:54:58 +0000 |
---|---|---|
committer | Iulian Dragos <jaguarul@gmail.com> | 2008-08-12 16:54:58 +0000 |
commit | 885e7dbad5229adc87de9a7660b3c56bc754541d (patch) | |
tree | f3868a388a633e226b22408ab1ece5e4150dccb6 /src/library | |
parent | 0d31778efe0e28e3c71294afc8a3cf7d149094c4 (diff) | |
download | scala-885e7dbad5229adc87de9a7660b3c56bc754541d.tar.gz scala-885e7dbad5229adc87de9a7660b3c56bc754541d.tar.bz2 scala-885e7dbad5229adc87de9a7660b3c56bc754541d.zip |
Fixed #1187, so that maps respect 'stringPrefix'
Diffstat (limited to 'src/library')
-rw-r--r-- | src/library/scala/collection/Map.scala | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/library/scala/collection/Map.scala b/src/library/scala/collection/Map.scala index 3de844ca48..4af388e22f 100644 --- a/src/library/scala/collection/Map.scala +++ b/src/library/scala/collection/Map.scala @@ -156,7 +156,7 @@ trait Map[A, +B] extends PartialFunction[A, B] with Collection[(A, B)] { * @return a string showing all mappings */ override def toString() = - elements.toList.map(kv => kv._1 + " -> " + kv._2).mkString("Map(", ", ", ")") + elements.toList.map(kv => kv._1 + " -> " + kv._2).mkString(stringPrefix + "(", ", ", ")") /** The default value for the map, returned when a key is not found * The method implemented here yields an error, |