aboutsummaryrefslogtreecommitdiffstats
path: root/rust
diff options
context:
space:
mode:
authorbnewbold <bnewbold@robocracy.org>2016-04-25 15:15:03 -0400
committerbnewbold <bnewbold@robocracy.org>2016-04-25 15:15:03 -0400
commitd08a817571038431f937e180bbdf0f08398f2162 (patch)
treeee9ab7402ee17e69018f134faff2259d52dd85e0 /rust
parente9254ac926023014a4fda2bfdd6fcadfa2ba6534 (diff)
downloadspectrum-d08a817571038431f937e180bbdf0f08398f2162.tar.gz
spectrum-d08a817571038431f937e180bbdf0f08398f2162.zip
rust: fix bug with symbol vs. identifier repr
Diffstat (limited to 'rust')
-rw-r--r--rust/spectrum.rs2
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 {