From d8611af1680ed9403bccc8dea307b75a737d45cd Mon Sep 17 00:00:00 2001 From: Andy Date: Thu, 13 Sep 2012 15:16:56 +0100 Subject: [PATCH] Fix up at_least counters --- lib/abnf.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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