mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-28 22:34:45 +00:00
refactor and clean up
This commit is contained in:
parent
604dbf7215
commit
1981a7e467
7 changed files with 355 additions and 241 deletions
|
@ -817,14 +817,17 @@ fn write_error_type_help(
|
|||
}
|
||||
Record(fields, ext) => {
|
||||
buf.push('{');
|
||||
|
||||
for (label, content) in fields {
|
||||
buf.push_str(label.as_str());
|
||||
buf.push_str(": ");
|
||||
write_error_type_help(home, interns, content, buf, Parens::Unnecessary);
|
||||
}
|
||||
|
||||
buf.push('}');
|
||||
write_type_ext(ext, buf);
|
||||
}
|
||||
|
||||
Infinite => {
|
||||
buf.push_str("∞");
|
||||
}
|
||||
|
||||
other => todo!("cannot format {:?} yet", other),
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue