summaryrefslogtreecommitdiffhomepage
path: root/julia.html.markdown
diff options
context:
space:
mode:
authorAdam Bard <github@adambard.com>2013-12-16 11:30:17 -0800
committerAdam Bard <github@adambard.com>2013-12-16 11:30:17 -0800
commit4bf5bbc2a3baa351b0e987c7a6ed7338ebea1f21 (patch)
tree454c85bf82367c5f484a1f83e5c71abe1c1bdaa6 /julia.html.markdown
parent6f194db75559eef10ee84e691a5bfdc3914e2ad5 (diff)
parentb32d26240c5c4c51c7df6b219c656fd11a862410 (diff)
Merge pull request #451 from adrianlzt/fix/wrong_index_in_tupla
Trying to set a value in index 0. Is confusing
Diffstat (limited to 'julia.html.markdown')
-rw-r--r--julia.html.markdown2
1 files changed, 1 insertions, 1 deletions
diff --git a/julia.html.markdown b/julia.html.markdown
index d1e17a26..4869e207 100644
--- a/julia.html.markdown
+++ b/julia.html.markdown
@@ -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