runpaint / read-ruby

Free ebook about Ruby 1.9
http://ruby.runpaint.org/
148 stars 28 forks source link

10 ** 10 = 10000000000, not 100 #43

Closed vshih closed 14 years ago

vshih commented 14 years ago

In the "Messages" chapter, "Receivers" section:

"For example, (10 \ 10).to_s evaluates the parenthetical, then sends its value (100) the :to_s message."

The value 100 is incorrect.

runpaint commented 14 years ago

I cut this graf, so this was fixed inadvertently in df3378fa142fff557e52 .