From ca05dc57bf4ff7e3db0e856ec323539fd190826d Mon Sep 17 00:00:00 2001 From: bnewbold Date: Mon, 25 Apr 2016 16:30:30 -0400 Subject: rust: fix car/cdr errors (trivial) --- rust/spectrum.rs | 4 ++-- 1 file 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::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::SchemeList(ref list) => { Ok(SchemeExpr::SchemeList(list[1..].to_vec())) }, - _ => Err(format!("car takes only lists")) + _ => Err(format!("car only takes lists")) } }, "cons" => { -- cgit v1.2.3