From 34aedd3fbb2223fe9258e13326273e1d04fc99b0 Mon Sep 17 00:00:00 2001 From: Leah Hanson Date: Mon, 21 Oct 2013 09:39:45 -0500 Subject: [PATCH] Fix a couple forgotten references to `contains` in the comments --- julia.html.markdown | 4 ++-- 1 file 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