SequenceableCollection.st
branchjv
changeset 19478 1f5aa87f6170
parent 19412 1e842c25e51e
parent 19460 8ebcf83b9b81
child 19559 d35a89d5c0ec
--- a/SequenceableCollection.st	Fri Mar 25 06:29:08 2016 +0000
+++ b/SequenceableCollection.st	Sat Mar 26 07:56:10 2016 +0000
@@ -393,12 +393,11 @@
 isAbstract
     "Return if this class is an abstract class.
      True is returned for SequenceableCollection here; false for subclasses.
-     Abstract subclasses must redefine again."
+     Abstract subclasses must redefine this again."
 
     ^ self == SequenceableCollection
 ! !
 
-
 !SequenceableCollection methodsFor:'Compatibility-Squeak'!
 
 allButFirst
@@ -4136,7 +4135,7 @@
 
 copyToMax:stop
     "return a new collection consisting of receiver's elements
-     from 1 up to (including) index stop, or up to the receivers end,
+     from 1 up to (including) index stop, or up to the receiver's end,
      whichever is smaller (i.e. like copyTo:, but do not err if receiver is smaller"
 
     ^ self copyFrom:1 to:(self size min:stop)
@@ -4533,7 +4532,7 @@
     "return a new collection with newElement inserted after index.
      With a 0 index, newElement is prepended;  
      if index is my size, it is appended.
-     The recevier remains unchanged"
+     The receiver remains unchanged"
 
     ^ ((self copyTo:index) copyWith:newElement),(self copyFrom:index+1).
 
@@ -4549,7 +4548,7 @@
     "return a new collection with newElement inserted after index.
      With a 0 index, newElement is prepended;  
      if index is my size, it is appended.
-     The recevier remains unchanged"
+     The receiver remains unchanged"
 
     ^ self copyWith:newElement insertedAfterIndex:index-1
 
@@ -4566,7 +4565,7 @@
     "return a new collection with aCollection sliced in after index.
      With a 0 index, aString is prepended;  
      if index is my size, it is appended.
-     The recevier remains unchanged"
+     The receiver remains unchanged"
 
     "/ tuning only;
     "/ the code below would work as well (but create a garbage copy of the receiver)
@@ -4587,7 +4586,7 @@
     "return a new collection with aCollection sliced in before index.
      With a 1 index, aString is prepended;  
      if index is my size+1, it is appended.
-     The recevier remains unchanged"
+     The receiver remains unchanged"
 
     ^ self copyWithAll:aCollection insertedAfterIndex:index-1
 
@@ -4848,7 +4847,8 @@
 !
 
 trimForWhich:aCheckBlock
-    "return a copy of myself without leading and trailing elements for which aCheckBlock returns true.
+    "return a copy of myself without leading and trailing elements,
+     for which aCheckBlock returns true.
      Normally, this is mostly used with string receivers."
 
     |startIndex "{ Class: SmallInteger }"
@@ -6907,7 +6907,7 @@
 !
 
 paddedTo:newSize with:padElement
-    "return a new collection consisting of the receivers elements,
+    "return a new collection consisting of the receiver's elements,
      plus pad elements up to length.
      If the receiver's size is equal or greater than the length argument,
      the original receiver is returned unchanged."
@@ -7783,7 +7783,6 @@
     "Created: 14.2.1997 / 16:13:03 / cg"
 ! !
 
-
 !SequenceableCollection methodsFor:'searching'!
 
 detect:aBlock startingAt:startIndex