Trying to set a value in index 0. Is confusing

This commit is contained in:
Adrian Lopez 2013-12-16 18:41:44 +01:00
parent 6f194db755
commit b32d26240c

View File

@ -210,7 +210,7 @@ length(a) #=> 8
tup = (1, 2, 3) #=> (1,2,3) # an (Int64,Int64,Int64) tuple.
tup[1] #=> 1
try:
tup[0] = 3 #=> ERROR: no method setindex!((Int64,Int64,Int64),Int64,Int64)
tup[1] = 3 #=> ERROR: no method setindex!((Int64,Int64,Int64),Int64,Int64)
catch e
println(e)
end