mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-08-05 14:27:51 +02:00
Merge pull request #467 from alexaltair/master
[julia/en] Fix typos and indentation
This commit is contained in:
@@ -417,7 +417,7 @@ try
|
|||||||
defaults('h') #=> ERROR: no method defaults(Char,)
|
defaults('h') #=> ERROR: no method defaults(Char,)
|
||||||
defaults() #=> ERROR: no methods defaults()
|
defaults() #=> ERROR: no methods defaults()
|
||||||
catch e
|
catch e
|
||||||
println(e)
|
println(e)
|
||||||
end
|
end
|
||||||
|
|
||||||
# You can define functions that take keyword arguments
|
# You can define functions that take keyword arguments
|
||||||
@@ -509,7 +509,7 @@ type Tiger
|
|||||||
end
|
end
|
||||||
|
|
||||||
# The default constructor's arguments are the properties
|
# 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")
|
tigger = Tiger(3.5,"orange") #=> Tiger(3.5,"orange")
|
||||||
|
|
||||||
# The type doubles as the constructor function for values of that type
|
# The type doubles as the constructor function for values of that type
|
||||||
|
Reference in New Issue
Block a user