#DOCUMENTATION by cg
authorClaus Gittinger <cg@exept.de>
Thu, 26 Mar 2020 15:05:07 +0100
changeset 25344 b6b71d974e50
parent 25343 92613f039ffe
child 25345 f58df9f5acfd
#DOCUMENTATION by cg class: SequenceableCollection comment/format in: #from: changed: #from:count:
SequenceableCollection.st
--- a/SequenceableCollection.st	Tue Mar 24 19:05:08 2020 +0100
+++ b/SequenceableCollection.st	Thu Mar 26 15:05:07 2020 +0100
@@ -2879,7 +2879,7 @@
         This means that any modifications in the original are visible in the slice
         and vice versa (well, no: because the slice is readOnly)."
 
-    ^ self from:startIndex to:self size by:1
+    ^ self from:startIndex to:(self size) by:1
 
     "
      #(1 2 3 4 5 6 7) from:3
@@ -2931,7 +2931,9 @@
         This means that any modifications in the original are visible in the slice
         and vice versa (well, no: because the slice is readOnly)."
 
-    ^ self from:startIndex to:(startIndex + numberOfElements - 1)
+    ^ self 
+        from:startIndex to:(startIndex + numberOfElements - 1)
+        by:1 
 
     "
      #($a $b $c $d $e $f $g) from:2 count:3