diff --git a/array/blocks.rb b/array/blocks.rb index 2d0e219..0c0f1ca 100644 --- a/array/blocks.rb +++ b/array/blocks.rb @@ -119,13 +119,13 @@ def lookup_mail_addresses2(table, logins) def fizz_buzz2(seq) seq.map {|n| if n % 3 == 0 && n % 5==0 - result << "Fizz Buzz" + "Fizz Buzz" elsif n % 3 == 0 - result << "Fizz" + "Fizz" elsif n % 5 == 0 - result << "Buzz" + "Buzz" else - result << n + n end } end