SequenceableCollection.st
changeset 20267 2f7863ac4188
parent 20179 d3441fd82fbb
child 20342 219a5a47e8b1
child 20391 beea43e4a428
--- a/SequenceableCollection.st	Mon Aug 15 12:52:49 2016 +0200
+++ b/SequenceableCollection.st	Mon Aug 15 12:52:54 2016 +0200
@@ -971,7 +971,7 @@
 !
 
 indexOfNth:n occurrenceOf:what
-    "return the index of the nTh occurence of a value, or 0 if there are not that many"
+    "return the index of the nTh occurrence of a value, or 0 if there are not that many"
 
     |idx cnt|
 
@@ -986,9 +986,9 @@
     ] loop.
 
     "  1 2 3 4 5 6 7 8 9 0 1 2 3 4 5 6
-     #(1 2 3 4 1 2 3 1 9 8 7 1 7 8 9 0) indexOfNth:3 occurrenceOf:1  
-     #(1 2 3 4 1 2 3 1 9 8 7 1 7 8 9 0) indexOfNth:2 occurrenceOf:7  
-     #(1 2 3 4 1 2 3 1 9 8 7 1 7 8 9 0) indexOfNth:3 occurrenceOf:9  
+     #(1 2 3 4 1 2 3 1 9 8 7 1 7 8 9 0) indexOfNth:3 occurrenceOf:1
+     #(1 2 3 4 1 2 3 1 9 8 7 1 7 8 9 0) indexOfNth:2 occurrenceOf:7
+     #(1 2 3 4 1 2 3 1 9 8 7 1 7 8 9 0) indexOfNth:3 occurrenceOf:9
     "
 !