summaryrefslogtreecommitdiffhomepage
path: root/ruby.html.markdown
diff options
context:
space:
mode:
authorNick LaMuro <nicklamuro@gmail.com>2013-08-13 17:46:33 -0500
committerNick LaMuro <nicklamuro@gmail.com>2013-08-13 17:46:33 -0500
commit7af884a9407c0b79aaede1edd3539e13a55552c8 (patch)
tree0cab1e31c4606997998c5d72af37c50ea7b54974 /ruby.html.markdown
parentea853dfa674a1be2c6d5e54b1307bf80693cf01d (diff)
Fixes spacing issues
Diffstat (limited to 'ruby.html.markdown')
-rw-r--r--ruby.html.markdown7
1 files changed, 4 insertions, 3 deletions
diff --git a/ruby.html.markdown b/ruby.html.markdown
index 46bfbb7c..963d1fc1 100644
--- a/ruby.html.markdown
+++ b/ruby.html.markdown
@@ -173,9 +173,9 @@ new_hash.keys #=> [:defcon, :action]
if true
"if statement"
elsif false
- "else if, optional"
+ "else if, optional"
else
- "else, also optional"
+ "else, also optional"
end
for counter in 1..5
@@ -190,7 +190,8 @@ end
# HOWEVER, No-one uses for loops.
# Instead you should use the "each" method and pass it a block.
# A block is a bunch of code that you can pass to a method like "each".
-# It is analogous to lambdas, anonymous functions or closures in other programming languages.
+# It is analogous to lambdas, anonymous functions or closures in other
+# programming languages.
#
# The "each" method of a range runs the block once for each element of the range.
# The block is passed a counter as a parameter.