nitlanguage
/
nit.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae92503
)
lib/core/bytes: Fixed broken `is_empty`
author
Lucas Bajolet
<r4pass@hotmail.com>
Sat, 28 Nov 2015 16:58:08 +0000
(11:58 -0500)
committer
Lucas 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
patch
|
blob
|
history
diff --git
a/lib/core/bytes.nit
b/lib/core/bytes.nit
index
94d3d27
..
50969d7
100644
(file)
--- a/
lib/core/bytes.nit
+++ b/
lib/core/bytes.nit
@@
-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