mirror of
https://github.com/roc-lang/roc.git
synced 2025-10-02 08:11:12 +00:00
improve closure pretty printing
This commit is contained in:
parent
4acbe876cc
commit
6c79048f9b
1 changed files with 4 additions and 5 deletions
|
@ -163,15 +163,14 @@ impl fmt::Debug for Type {
|
||||||
|
|
||||||
for (index, arg) in args.iter().enumerate() {
|
for (index, arg) in args.iter().enumerate() {
|
||||||
if index > 0 {
|
if index > 0 {
|
||||||
", ".fmt(f)?;
|
write!(f, ", ")?;
|
||||||
}
|
}
|
||||||
|
|
||||||
arg.fmt(f)?;
|
write!(f, "{:?}", arg)?;
|
||||||
}
|
}
|
||||||
|
|
||||||
write!(f, " -")?;
|
write!(f, " |{:?}|", closure)?;
|
||||||
closure.fmt(f)?;
|
write!(f, " -> ")?;
|
||||||
write!(f, "-> ")?;
|
|
||||||
|
|
||||||
ret.fmt(f)?;
|
ret.fmt(f)?;
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue