nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d2abbee
)
lib/core: fix `List::clear` not setting `length` to 0
author
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 25 Feb 2016 04:08:42 +0000
(23:08 -0500)
committer
Alexis Laferrière
<alexis.laf@xymus.net>
Thu, 25 Feb 2016 04:13:21 +0000
(23:13 -0500)
Signed-off-by: Alexis Laferrière <alexis.laf@xymus.net>
lib/core/collection/list.nit
patch
|
blob
|
history
diff --git
a/lib/core/collection/list.nit
b/lib/core/collection/list.nit
index
4516703
..
ab81a37
100644
(file)
--- a/
lib/core/collection/list.nit
+++ b/
lib/core/collection/list.nit
@@
-186,6
+186,7
@@
class List[E]
do
_head = null
_tail = null
+ length = 0
end