mirror of
https://github.com/adambard/learnxinyminutes-docs.git
synced 2025-05-08 15:58:33 +00:00
typos
This commit is contained in:
parent
db072899ff
commit
3bc960034c
@ -357,7 +357,7 @@ end
|
|||||||
# 2
|
# 2
|
||||||
# 3
|
# 3
|
||||||
|
|
||||||
# Handle exceptions with a try/except block
|
# Handle exceptions with a try/catch block
|
||||||
try
|
try
|
||||||
error("help")
|
error("help")
|
||||||
catch e
|
catch e
|
||||||
@ -402,7 +402,7 @@ Set([1,2,3]...) #=> Set{Int64}(1,2,3) # this is equivalent to Set(1,2,3)
|
|||||||
|
|
||||||
x = (1,2,3) #=> (1,2,3)
|
x = (1,2,3) #=> (1,2,3)
|
||||||
Set(x) #=> Set{(Int64,Int64,Int64)}((1,2,3)) # a Set of Tuples
|
Set(x) #=> Set{(Int64,Int64,Int64)}((1,2,3)) # a Set of Tuples
|
||||||
Set(x...) #=> Set{Int64}(1,2,3)
|
Set(x...) #=> Set{Int64}(2,3,1)
|
||||||
|
|
||||||
|
|
||||||
# You can define functions with optional positional arguments
|
# You can define functions with optional positional arguments
|
||||||
|
Loading…
Reference in New Issue
Block a user