Skip to content

Commit

Permalink
Update README
Browse files Browse the repository at this point in the history
  • Loading branch information
sfackler committed Jul 11, 2014
1 parent a90e7cc commit b89cc89
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -24,13 +24,13 @@ extern crate phf;

use phf::PhfMap;

static KEYWORDS: PhfMap<Keyword> = phf_map!(
static KEYWORDS: PhfMap<&'static str, Keyword> = phf_map! {
"loop" => LOOP,
"continue" => CONTINUE,
"break" => BREAK,
"fn" => FN,
"extern" => EXTERN,
);
};

pub fn parse_keyword(keyword: &str) -> Option<Keyword> {
KEYWORDS.find(keyword).map(|t| t.clone())
Expand Down

0 comments on commit b89cc89

Please sign in to comment.