check comma count in enum instead

This commit is contained in:
Daniel Gavin committed 2021-04-22 00:55:25 +02:00
1 parent 43589a56b7
commit ab53900c95
2 files changed
+12 -8

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ sort_attribute :: proc(s: ^[dynamic]^ast.Attribute) -> sort.Interface {
@(private)
comment_before_position :: proc(p: ^Printer, pos: tokenizer.Pos) -> bool {
if len(p.comments) <= p.latest_comment_index {
return false;
}