From 86df02805110f4cffb6d7e08bdfe1c5ee97b1f9c Mon Sep 17 00:00:00 2001 From: ChristopheGIGAX Date: Wed, 29 Jan 2014 22:07:59 -0500 Subject: [PATCH] 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 --- lib/standard/collection/array.nit | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 1.7.9.5