Skip to content

Commit de6d9f6

Browse files
committed
libsyntax: change token_is_word to take &Token
1 parent 34c02a6 commit de6d9f6

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/common.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -137,7 +137,7 @@ pub impl Parser {
137137
}
138138
}
139139

140-
fn token_is_word(word: &~str, tok: &token::Token) -> bool {
140+
pure fn token_is_word(word: &~str, tok: &token::Token) -> bool {
141141
match *tok {
142142
token::IDENT(sid, false) => { *self.id_to_str(sid) == *word }
143143
_ => { false }

0 commit comments

Comments
 (0)