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,14 +163,13 @@ impl fmt::Debug for Type {
|
|||
|
||||
for (index, arg) in args.iter().enumerate() {
|
||||
if index > 0 {
|
||||
", ".fmt(f)?;
|
||||
write!(f, ", ")?;
|
||||
}
|
||||
|
||||
arg.fmt(f)?;
|
||||
write!(f, "{:?}", arg)?;
|
||||
}
|
||||
|
||||
write!(f, " -")?;
|
||||
closure.fmt(f)?;
|
||||
write!(f, " |{:?}|", closure)?;
|
||||
write!(f, " -> ")?;
|
||||
|
||||
ret.fmt(f)?;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue