From: ChristopheGIGAX Date: Thu, 30 Jan 2014 03:07:59 +0000 (-0500) Subject: array: improve comment of `last_index_of_from` X-Git-Tag: v0.6.4~42 X-Git-Url: http://nitlanguage.org array: improve comment of `last_index_of_from` The documentation was ambigus comparing to the implementation. signed-off-by : Christophe GIGAX signed-off-by : Benjamin JOSE --- diff --git a/lib/standard/collection/array.nit b/lib/standard/collection/array.nit index 5de71cd..073471e 100644 --- a/lib/standard/collection/array.nit +++ b/lib/standard/collection/array.nit @@ -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