mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-20 21:42:14 +02:00
Fix a missing character in the comment.
remove useless whitespace at the end of the lines.
This commit is contained in:
@@ -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
|
||||||
|
Reference in New Issue
Block a user