From c98c691225ad80fe3962ff4390393afebc327ebb Mon Sep 17 00:00:00 2001 From: Steven Fackler Date: Thu, 24 Jul 2014 09:15:47 -0700 Subject: [PATCH] Fix README example --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 7241b866..8eceaca3 100644 --- a/README.md +++ b/README.md @@ -33,6 +33,6 @@ static KEYWORDS: PhfMap<&'static str, Keyword> = phf_map! { }; pub fn parse_keyword(keyword: &str) -> Option { - KEYWORDS.find(keyword).map(|t| t.clone()) + KEYWORDS.find_equiv(keyword).map(|t| t.clone()) } ```