This commit is contained in:
greg 2017-12-04 03:02:38 -08:00
parent 502497687a
commit 2ee14bf740

View File

@ -107,11 +107,11 @@ impl Sexp {
&NumberAtom(ref n) => format!("{}", n),
&List(ref sexprs) => {
let mut output = String::new();
write!(&mut output, "(");
write!(&mut output, "(").unwrap();
for sexpr in sexprs.iter() {
write!(&mut output, "{}", sexpr.print());
write!(&mut output, "{}", sexpr.print()).unwrap();
}
write!(&mut output, ")");
write!(&mut output, ")").unwrap();
output
}
}