libsyntax: change token_is_word to take &Token

This commit is contained in:
Erick Tryzelaar 2013-02-24 21:22:43 -08:00
parent 34c02a6c0e
commit de6d9f66b5

View File

@ -137,7 +137,7 @@ pub impl Parser {
}
}
fn token_is_word(word: &~str, tok: &token::Token) -> bool {
pure fn token_is_word(word: &~str, tok: &token::Token) -> bool {
match *tok {
token::IDENT(sid, false) => { *self.id_to_str(sid) == *word }
_ => { false }