lib/core/bytes: Fixed broken `is_empty`
authorLucas Bajolet <r4pass@hotmail.com>
Sat, 28 Nov 2015 16:58:08 +0000 (11:58 -0500)
committerLucas Bajolet <r4pass@hotmail.com>
Sat, 28 Nov 2015 16:58:08 +0000 (11:58 -0500)
Signed-off-by: Lucas Bajolet <r4pass@hotmail.com>

lib/core/bytes.nit

index 94d3d27..50969d7 100644 (file)
@@ -107,7 +107,7 @@ class Bytes
                init(ns, 0, cap)
        end
 
-       redef fun is_empty do return length != 0
+       redef fun is_empty do return length == 0
 
        #     var b = new Bytes.empty
        #     b.add 101u8