diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-04-25 15:15:03 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-04-25 15:15:03 -0400 |
commit | d08a817571038431f937e180bbdf0f08398f2162 (patch) | |
tree | ee9ab7402ee17e69018f134faff2259d52dd85e0 /rust | |
parent | e9254ac926023014a4fda2bfdd6fcadfa2ba6534 (diff) | |
download | spectrum-d08a817571038431f937e180bbdf0f08398f2162.tar.gz spectrum-d08a817571038431f937e180bbdf0f08398f2162.zip |
rust: fix bug with symbol vs. identifier repr
Diffstat (limited to 'rust')
-rw-r--r-- | rust/spectrum.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/rust/spectrum.rs b/rust/spectrum.rs index 19921a0..5e1ed83 100644 --- a/rust/spectrum.rs +++ b/rust/spectrum.rs @@ -233,7 +233,7 @@ fn scheme_repr(ast: &SchemeExpr) -> Result<String, String> { &SchemeExpr::SchemeBuiltin(ref b)=> Ok(b.clone()), &SchemeExpr::SchemeStr(ref s)=> Ok(s.clone()), &SchemeExpr::SchemeSymbol(ref s)=> Ok(s.clone()), - &SchemeExpr::SchemeIdentifier(ref s)=> Ok("'".to_string() + &s), + &SchemeExpr::SchemeIdentifier(ref s)=> Ok(s.to_string()), &SchemeExpr::SchemeProcedure(ref binds, ref body, _) => { let mut ret = "(lambda (".to_string(); for bind in binds { |