diff options
| author | Corey Richardson <corey@octayn.net> | 2014-05-21 16:57:31 -0700 |
|---|---|---|
| committer | Corey Richardson <corey@octayn.net> | 2014-06-04 12:10:46 -0700 |
| commit | 46d1af28b5ce4f626be1eb33cb9751cb9cbb1fe9 (patch) | |
| tree | 6ad3023488d747633bef86cbdab5d30e79e4b032 /src/libsyntax/parse/token.rs | |
| parent | 5343eb7e0cf576d690b6cfceb9c5ca6a4bfd8652 (diff) | |
| download | rust-46d1af28b5ce4f626be1eb33cb9751cb9cbb1fe9.tar.gz rust-46d1af28b5ce4f626be1eb33cb9751cb9cbb1fe9.zip | |
syntax: methodify the lexer
Diffstat (limited to 'src/libsyntax/parse/token.rs')
| -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 17a90ad1325..42319eeb371 100644 --- a/src/libsyntax/parse/token.rs +++ b/src/libsyntax/parse/token.rs @@ -166,7 +166,7 @@ pub fn to_str(t: &Token) -> String { ANDAND => "&&".to_string(), BINOP(op) => binop_to_str(op).to_string(), BINOPEQ(op) => { - let mut s = binop_to_str(op).to_strbuf(); + let mut s = binop_to_str(op).to_string(); s.push_str("="); s } |
