diff options
| author | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-24 17:02:04 -0800 |
|---|---|---|
| committer | Erick Tryzelaar <erick.tryzelaar@gmail.com> | 2013-02-26 03:22:14 -0800 |
| commit | 375c2982971662a26afda5e2aac437ccf81a9872 (patch) | |
| tree | 7717fe99fa8bc4948382438fa8ced32e41117340 /src/libsyntax/parse | |
| parent | de6d9f66b514d6a0e6cc436a942218c3ab4c8e57 (diff) | |
| download | rust-375c2982971662a26afda5e2aac437ccf81a9872.tar.gz rust-375c2982971662a26afda5e2aac437ccf81a9872.zip | |
libsyntax: change binop_to_str to be pure
Diffstat (limited to 'src/libsyntax/parse')
| -rw-r--r-- | src/libsyntax/parse/token.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/libsyntax/parse/token.rs b/src/libsyntax/parse/token.rs index bb1f8f1d1d9..2b9df61120e 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -115,7 +115,7 @@ pub enum nonterminal { nt_matchers(~[ast::matcher]) } -pub fn binop_to_str(o: binop) -> ~str { +pub pure fn binop_to_str(o: binop) -> ~str { match o { PLUS => ~"+", MINUS => ~"-", |
