From: Anthony Ob Date: 2010-10-01T11:54:42+09:00 Subject: Re: Syntax error John Sikora wrote: >> >> Sorry I forgot to post this. >> http://rubylearning.com/satishtalim/ruby_blocks.html >> I was doing that above the summary in the code, above the output. > > If I read the example correctly, the colon (:) should be a semi-colon > (;). > > js I have done that and it says: Test6.rb:4 syntax error, unexpected ';', tCOLON2 or '[' or '.' 3.times do |y;X| test6.rb:5: syntax error, unexpected tSTRING_BEG, expecting kDO or '<' or '<' puts "Looping #{y}" test6.rb:7: syntax error, unexpected kEND, expecting $end] -- Posted via http://www.ruby-forum.com/.