mirror of
https://github.com/roc-lang/roc.git
synced 2025-09-30 07:14:46 +00:00
remove duplicated is_comment function
This commit is contained in:
parent
ccabc41489
commit
93b7ac5b0c
3 changed files with 4 additions and 12 deletions
|
@ -150,11 +150,3 @@ fn fmt_docs<'a>(buf: &mut String<'a>, docs: &'a str, indent: u16) {
|
|||
|
||||
newline(buf, indent);
|
||||
}
|
||||
|
||||
pub fn is_comment<'a>(space: &'a CommentOrNewline<'a>) -> bool {
|
||||
match space {
|
||||
CommentOrNewline::Newline => false,
|
||||
CommentOrNewline::LineComment(_) => true,
|
||||
CommentOrNewline::DocComment(_) => true,
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue