nitlanguage
/
nit.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
lib/saxophonit: fixes useless type declaration
[nit.git]
/
lib
/
saxophonit
/
lexer.nit
diff --git
a/lib/saxophonit/lexer.nit
b/lib/saxophonit/lexer.nit
index
07277ef
..
289d7fe
100644
(file)
--- a/
lib/saxophonit/lexer.nit
+++ b/
lib/saxophonit/lexer.nit
@@
-350,7
+350,7
@@
class XophonLexer
# match `expected`.
fun expect_string(expected: String, context: String): Bool do
var chars = expected.chars
- var i: Int = 0
+ var i = 0
while i < chars.length do
if not accept(chars[i]) then