B
Behrang Saeedzadeh
Hi all
I just stumbled upon a typo in the Ruby documentation and thought it
would be OK to mention it here.
The typo is at the http://www.rubycentral.com/book/intro.html page:
---
Sometimes creating arrays of words can be a pain, what with all the
quotes and commas. Fortunately, there's a shortcut: %w does just what
we want.
a =3D %w{ ant bee cat dog elk }
---
I guess, the %w{ ant bee cat dog talk } must be %w[ ant bee cat dog
talk] as we're talking about arrays and not hashes.
Best regards,
--=20
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa
I just stumbled upon a typo in the Ruby documentation and thought it
would be OK to mention it here.
The typo is at the http://www.rubycentral.com/book/intro.html page:
---
Sometimes creating arrays of words can be a pain, what with all the
quotes and commas. Fortunately, there's a shortcut: %w does just what
we want.
a =3D %w{ ant bee cat dog elk }
---
I guess, the %w{ ant bee cat dog talk } must be %w[ ant bee cat dog
talk] as we're talking about arrays and not hashes.
Best regards,
--=20
Behrang Saeedzadeh
http://www.jroller.com/page/behrangsa