mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-27 05:49:08 +00:00
update test, fix logic
This commit is contained in:
parent
db1c230f1f
commit
7fe052322c
2 changed files with 7 additions and 17 deletions
|
@ -590,9 +590,7 @@ pub fn fmt_annotated_body_comment<'a>(
|
|||
let mut comment_iter = comment.iter();
|
||||
if let Some(comment_first) = comment_iter.next() {
|
||||
match comment_first {
|
||||
roc_parse::ast::CommentOrNewline::Newline => {
|
||||
buf.newline();
|
||||
}
|
||||
roc_parse::ast::CommentOrNewline::Newline => (),
|
||||
roc_parse::ast::CommentOrNewline::DocComment(comment_str) => {
|
||||
buf.push_str(" # #");
|
||||
buf.spaces(1);
|
||||
|
@ -606,10 +604,9 @@ pub fn fmt_annotated_body_comment<'a>(
|
|||
}
|
||||
|
||||
for comment_or_newline in comment_iter {
|
||||
buf.newline();
|
||||
match comment_or_newline {
|
||||
roc_parse::ast::CommentOrNewline::Newline => {
|
||||
buf.newline();
|
||||
}
|
||||
roc_parse::ast::CommentOrNewline::Newline => (),
|
||||
roc_parse::ast::CommentOrNewline::DocComment(comment_str) => {
|
||||
buf.indent(indent);
|
||||
buf.push_str("# #");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue