From 885e7dbad5229adc87de9a7660b3c56bc754541d Mon Sep 17 00:00:00 2001 From: Iulian Dragos Date: Tue, 12 Aug 2008 16:54:58 +0000 Subject: Fixed #1187, so that maps respect 'stringPrefix' --- src/library/scala/collection/Map.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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, -- cgit v1.2.3