array: improve comment of `last_index_of_from`
[nit.git] / lib / standard / collection / array.nit
index 5de71cd..073471e 100644 (file)
@@ -80,7 +80,7 @@ abstract class AbstractArrayRead[E]
                return -1
        end
 
-       # The index of the last occurrence of an element starting from pos.
+       # The index of the first occurrence of an element starting from pos, by decremanting the index
        # Return -1 if not found.
        fun last_index_of_from(item: E, pos: Int): Int
        do