This commit is contained in:
greg 2017-12-04 03:02:38 -08:00
parent 07e55ca04e
commit d84def35e7

View File

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