SortedCollection.st
changeset 22430 55f78535471b
parent 22336 5cadc7503103
child 23247 eabe4e9101ef
--- a/SortedCollection.st	Tue Jan 16 15:12:43 2018 +0100
+++ b/SortedCollection.st	Tue Jan 16 15:12:58 2018 +0100
@@ -1,3 +1,5 @@
+"{ Encoding: utf8 }"
+
 "
  COPYRIGHT (c) 1993 by Claus Gittinger
 	      All Rights Reserved
@@ -854,9 +856,9 @@
 !
 
 indexOf:anObject
-    "return true, if the argument, anObject is in the collection.
-     Redefined, since due to being sorted, the inclusion check can
-     be done with log-n compares i.e. much faster."
+    "return the index of the anObject or 0 if anObject is not in the collection.
+     Redefined, since due to being sorted, 
+     this can be done with log-n compares i.e. much faster."
 
     |index "{ Class: SmallInteger }"
      initialIndex "{ Class: SmallInteger }"