summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorLeah Hanson <leah.a.hanson@gmail.com>2013-10-21 09:39:45 -0500
committerLeah Hanson <leah.a.hanson@gmail.com>2013-10-21 09:39:45 -0500
commit34aedd3fbb2223fe9258e13326273e1d04fc99b0 (patch)
treeca5509a06aa4cbc27dcfa4ab8b1f1d8a20b06c11
parent5e362f5f4fd77f162453146b8c24fe3855a041fd (diff)
Fix a couple forgotten references to `contains` in the comments
-rw-r--r--julia.html.markdown4
1 files changed, 2 insertions, 2 deletions
diff --git a/julia.html.markdown b/julia.html.markdown
index ad8a5741..4ebd50ff 100644
--- a/julia.html.markdown
+++ b/julia.html.markdown
@@ -200,7 +200,7 @@ splice!(arr,2) #=> 4 ; arr is now [3,5]
b = [1,2,3]
append!(a,b) # Now a is [1, 2, 3, 4, 5, 1, 2, 3]
-# Check for existence in a list with contains
+# Check for existence in a list with in
in(a,1) #=> true
# Examine the length with length
@@ -254,7 +254,7 @@ values(filled_dict)
#=> ValueIterator{Dict{ASCIIString,Int64}}(["three"=>3,"one"=>1,"two"=>2])
# Note - Same as above regarding key ordering.
-# Check for existence of keys in a dictionary with contains, haskey
+# Check for existence of keys in a dictionary with in, haskey
in(filled_dict, ("one", 1)) #=> true
in(filled_dict, ("two", 3)) #=> false
haskey(filled_dict, "one") #=> true