libsyntax: change binop_to_str to be pure
This commit is contained in:
parent
de6d9f66b5
commit
375c298297
@ -115,7 +115,7 @@ pub enum nonterminal {
|
|||||||
nt_matchers(~[ast::matcher])
|
nt_matchers(~[ast::matcher])
|
||||||
}
|
}
|
||||||
|
|
||||||
pub fn binop_to_str(o: binop) -> ~str {
|
pub pure fn binop_to_str(o: binop) -> ~str {
|
||||||
match o {
|
match o {
|
||||||
PLUS => ~"+",
|
PLUS => ~"+",
|
||||||
MINUS => ~"-",
|
MINUS => ~"-",
|
||||||
|
Loading…
Reference in New Issue
Block a user