M
Marvin Gülker
Hello,
I've found there's a mistake in the keyword documentation for Ruby 1.9
on ruby-doc.org. For "return" one code example is:
def three
return 3
ensure
puts "Enjoy the 3!"
end
a = 3 # Enjoy the 3! #<=====WRONG
puts a # 3
where the marked line does not show "Enjoy the 3!". I think that line
has to be
a = three
I've found there's a mistake in the keyword documentation for Ruby 1.9
on ruby-doc.org. For "return" one code example is:
def three
return 3
ensure
puts "Enjoy the 3!"
end
a = 3 # Enjoy the 3! #<=====WRONG
puts a # 3
where the marked line does not show "Enjoy the 3!". I think that line
has to be
a = three