Collection.st
changeset 21082 c8e0ef40bf6e
parent 21040 9f1f81cbf2b2
child 21089 d50f93ca9622
child 21143 89370f05de89
--- a/Collection.st	Wed Nov 30 17:29:44 2016 +0100
+++ b/Collection.st	Wed Nov 30 17:43:29 2016 +0100
@@ -1616,16 +1616,16 @@
 asArrayOfType:arrayClass
     "return a new instance of arrayClass with the collection's elements"
 
-    |anIntegerArray 
+    |anArrayInstance 
      index "{ Class: SmallInteger }" |
 
-    anIntegerArray := arrayClass new:(self size).
+    anArrayInstance := arrayClass new:(self size).
     index := 1.
     self do:[:each |
-        anIntegerArray at:index put:each.
+        anArrayInstance at:index put:each.
         index := index + 1
     ].
-    ^ anIntegerArray
+    ^ anArrayInstance
 !
 
 asBag