changeset 18:e58952c15e5e

Fix typo and expand description
author IBBoard <dev@ibboard.co.uk>
date Wed, 04 Jan 2017 20:03:59 +0000
parents 61dfac9a058a
children ddcd809319ac
files 1-Ruby/code-blocks.rb
diffstat 1 files changed, 4 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/1-Ruby/code-blocks.rb	Tue Jan 03 20:58:19 2017 +0000
+++ b/1-Ruby/code-blocks.rb	Wed Jan 04 20:03:59 2017 +0000
@@ -39,8 +39,10 @@
 # I tried. Calling a block definitely needs ".call"
 #
 # This page (https://mixandgo.com/blog/mastering-ruby-blocks-in-less-than-5-minutes)
-# makes it cleared: ANY method can take a block independent of its arguments.
-# That means that this works:
+# makes it clearer: ANY method can take a block independent of its arguments.
+#
+# That means that this works, because we're taking an argument then treating it like
+# a block:
 def pass_var_block(block)
 	call_block(&block)
 end