diff --git a/lib/abnf.rb b/lib/abnf.rb index eb757db..71227da 100644 --- a/lib/abnf.rb +++ b/lib/abnf.rb @@ -18,11 +18,11 @@ def first end def until_end # &blk - i = @first + i = 0 while true - i += 1 yield i + i += 1 end end end