1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-20 13:31:43 +02:00

Merge pull request #222 from GRoguelon/fix-ruby-en

Fixed a missing character in Ruby language.
This commit is contained in:
Adam Bard
2013-08-16 08:40:30 -07:00

View File

@@ -252,7 +252,7 @@ def double(x)
x * 2 x * 2
end 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 double(2) #=> 4
# Parentheses are optional where the result is unambiguous # Parentheses are optional where the result is unambiguous