diff --git a/lib/extreme_startup/question_factory.rb b/lib/extreme_startup/question_factory.rb index ac260b8..fa4c3be 100644 --- a/lib/extreme_startup/question_factory.rb +++ b/lib/extreme_startup/question_factory.rb @@ -277,7 +277,7 @@ def points def correct_answer n = @n1 + 4 a, b = 0, 1 - (0...n).each { |_| a, b = b, a + b } + n.times { a, b = b, a + b } a end end