array: improve comment of `last_index_of_from`
authorChristopheGIGAX <christophe.gigax@viacesi.fr>
Thu, 30 Jan 2014 03:07:59 +0000 (22:07 -0500)
committerJean Privat <jean@pryen.org>
Fri, 7 Feb 2014 14:50:05 +0000 (09:50 -0500)
The documentation was ambigus comparing to the implementation.

signed-off-by : Christophe GIGAX <christophe.gigax@viacesi.fr>
signed-off-by : Benjamin JOSE <beness.j@gmail.com>

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