mirror of
https://github.com/roc-lang/roc.git
synced 2025-08-04 04:08:19 +00:00
Update formatter has
-> implements
This commit is contained in:
parent
43e6cf6f90
commit
95516d585a
1 changed files with 2 additions and 2 deletions
|
@ -654,7 +654,7 @@ impl<'a> Formattable for ImplementsClause<'a> {
|
|||
fn format_with_options(&self, buf: &mut Buf, parens: Parens, newlines: Newlines, indent: u16) {
|
||||
buf.push_str(self.var.value.extract_spaces().item);
|
||||
buf.spaces(1);
|
||||
buf.push_str("has");
|
||||
buf.push_str("implements");
|
||||
buf.spaces(1);
|
||||
|
||||
for (i, ab) in self.abilities.iter().enumerate() {
|
||||
|
@ -753,7 +753,7 @@ impl<'a> Formattable for ImplementsAbilities<'a> {
|
|||
buf.newline();
|
||||
buf.indent(indent);
|
||||
}
|
||||
buf.push_str("has");
|
||||
buf.push_str("implements");
|
||||
buf.spaces(1);
|
||||
fmt_collection(buf, indent, Braces::Square, *has_abilities, Newlines::No);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue