diff options
author | Adam <adam@adambard.com> | 2013-08-16 08:51:16 -0700 |
---|---|---|
committer | Adam <adam@adambard.com> | 2013-08-16 08:51:16 -0700 |
commit | 5be20756e046175bf04aea5a7a2c744b807ed384 (patch) | |
tree | 16f9f843ceb9d674a6c641926beb58e1b60cf9d4 /ruby.html.markdown | |
parent | fde1bab1f0d598a9f76e43cc714dcc13be3a0ba7 (diff) | |
parent | 9a9b5a31e079c635fe4c5afc1127f88fbad091f3 (diff) |
Merge branch 'master' of https://github.com/adambard/learnxinyminutes-docs
Diffstat (limited to 'ruby.html.markdown')
-rw-r--r-- | ruby.html.markdown | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/ruby.html.markdown b/ruby.html.markdown index 19f2ec86..3a233d98 100644 --- a/ruby.html.markdown +++ b/ruby.html.markdown @@ -36,7 +36,7 @@ You shouldn't either # Arithmetic is just syntactic sugar # for calling a method on an object 1.+(3) #=> 4 -10.* 5 #=> 50 +10.* 5 #=> 50 # Special values are objects nil # Nothing to see here @@ -242,7 +242,7 @@ when 'D' puts "Scraping through" when 'F' puts "You failed!" -else +else puts "Alternative grading system, eh?" end @@ -252,7 +252,7 @@ def double(x) x * 2 end -# Functions (and all blocks) implcitly return the value of the last statement +# Functions (and all blocks) implicitly return the value of the last statement double(2) #=> 4 # Parentheses are optional where the result is unambiguous |