print characters correctly

This commit is contained in:
Mark Thom
2018-04-16 23:25:37 -06:00
parent c02c88b6f0
commit 35694e7622

View File

@@ -537,7 +537,7 @@ impl fmt::Display for Constant {
&Constant::Atom(ref atom) => &Constant::Atom(ref atom) =>
write!(f, "{}", atom), write!(f, "{}", atom),
&Constant::Char(c) => &Constant::Char(c) =>
write!(f, "#\\{}", c), write!(f, "{}", c as u8),
&Constant::EmptyList => &Constant::EmptyList =>
write!(f, "[]"), write!(f, "[]"),
&Constant::Number(ref n) => &Constant::Number(ref n) =>