1
0
mirror of https://github.com/adambard/learnxinyminutes-docs.git synced 2025-08-19 04:52:13 +02:00

Merge pull request #118 from tt/fix-typo-in-ruby

Fix typo in Ruby
This commit is contained in:
Adam Bard
2013-07-10 11:12:43 -07:00

View File

@@ -267,7 +267,7 @@ class Human
@@species = "H. sapiens"
# Basic initializer
def initialize(name, age=0):
def initialize(name, age=0)
# Assign the argument to the "name" instance variable for the instance
@name = name
# If no age given, we will fall back to the default in the arguments list.