nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c55c818
)
array: improve comment of `last_index_of_from`
author
ChristopheGIGAX
<christophe.gigax@viacesi.fr>
Thu, 30 Jan 2014 03:07:59 +0000
(22:07 -0500)
committer
Jean 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
patch
|
blob
|
history
diff --git
a/lib/standard/collection/array.nit
b/lib/standard/collection/array.nit
index
5de71cd
..
073471e
100644
(file)
--- 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