Collection.st
changeset 19222 a499f0ee26b7
parent 19207 ccaeb96d0047
child 19229 c20beb908660
child 19306 437d8365fb5d
--- a/Collection.st	Mon Feb 15 17:16:34 2016 +0100
+++ b/Collection.st	Mon Feb 15 23:05:57 2016 +0100
@@ -1609,12 +1609,12 @@
     "return a Dictionary with the receiver collection's elements,
      using the original keys of the receiver as dictionary key.
      Notice: this is redefined in Dictionary, where it returns the receiver. 
-     Use asNewDictionary, if you intent to modify the returned collection.
+     Use asNewDictionary, if you intend to modify the returned collection.
      See associationsAsDictionary if you already have a collection of associations"
 
     |d|
 
-    d := Dictionary new.
+    d := Dictionary new:self size.
     self keysAndValuesDo:[:k :v | d at:k put:v].
     ^ d