Skip to content

Commit 375c298

Browse files
committed
libsyntax: change binop_to_str to be pure
1 parent de6d9f6 commit 375c298

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/libsyntax/parse/token.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@ pub enum nonterminal {
115115
nt_matchers(~[ast::matcher])
116116
}
117117

118-
pub fn binop_to_str(o: binop) -> ~str {
118+
pub pure fn binop_to_str(o: binop) -> ~str {
119119
match o {
120120
PLUS => ~"+",
121121
MINUS => ~"-",

0 commit comments

Comments
 (0)