#DOCUMENTATION by stefan
authorStefan Vogel <sv@exept.de>
Wed, 30 Nov 2016 17:43:29 +0100
changeset 21082 c8e0ef40bf6e
parent 21081 7c7d1c059ce9
child 21083 3b7b02336cbb
#DOCUMENTATION by stefan class: Collection comment/format in: #asArrayOfType:
Collection.st
--- 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