diff options
author | bnewbold <bnewbold@robocracy.org> | 2016-04-25 16:30:30 -0400 |
---|---|---|
committer | bnewbold <bnewbold@robocracy.org> | 2016-04-25 16:30:30 -0400 |
commit | ca05dc57bf4ff7e3db0e856ec323539fd190826d (patch) | |
tree | 45b3530a95f8856bf26429796b8354f97d01b783 | |
parent | 073f63433bf4a38d2c5a878872f191b708509aae (diff) | |
download | spectrum-ca05dc57bf4ff7e3db0e856ec323539fd190826d.tar.gz spectrum-ca05dc57bf4ff7e3db0e856ec323539fd190826d.zip |
rust: fix car/cdr errors (trivial)
-rw-r--r-- | rust/spectrum.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/rust/spectrum.rs b/rust/spectrum.rs index 38fb30c..9f30a00 100644 --- a/rust/spectrum.rs +++ b/rust/spectrum.rs @@ -469,7 +469,7 @@ fn apply_action(list: &Vec<SchemeExpr>, &SchemeExpr::SchemeList(ref list) => { Ok(list[0].clone()) }, - _ => Err(format!("cdr takes only lists")) + _ => Err(format!("cdr only takes lists")) } }, "cdr" => { @@ -480,7 +480,7 @@ fn apply_action(list: &Vec<SchemeExpr>, &SchemeExpr::SchemeList(ref list) => { Ok(SchemeExpr::SchemeList(list[1..].to_vec())) }, - _ => Err(format!("car takes only lists")) + _ => Err(format!("car only takes lists")) } }, "cons" => { |