Fix typos and indentation

This commit is contained in:
Alex Altair 2013-12-28 02:22:25 -08:00
parent 8b051e0f99
commit e7dcbed40d

View File

@ -417,7 +417,7 @@ try
defaults('h') #=> ERROR: no method defaults(Char,)
defaults() #=> ERROR: no methods defaults()
catch e
println(e)
println(e)
end
# You can define functions that take keyword arguments
@ -509,7 +509,7 @@ type Tiger
end
# The default constructor's arguments are the properties
# of the tyep, in order the order they are listed in the definition
# of the type, in the order they are listed in the definition
tigger = Tiger(3.5,"orange") #=> Tiger(3.5,"orange")
# The type doubles as the constructor function for values of that type