lib: fix NaiveCollection::length
authorJean Privat <jean@pryen.org>
Sat, 12 Feb 2011 02:10:32 +0000 (21:10 -0500)
committerJean Privat <jean@pryen.org>
Mon, 14 Feb 2011 20:31:07 +0000 (15:31 -0500)
Signed-off-by: Jean Privat <jean@pryen.org>

lib/standard/collection/abstract_collection.nit

index a94c7b6..b6e734a 100644 (file)
@@ -85,7 +85,7 @@ special Collection[E]
        redef fun length
        do
                var nb = 0
-               for i in self do nb += nb
+               for i in self do nb += 1 
                return nb
        end