Fix an oversight from #9709

This commit is contained in:
Georgii Dolzhykov committed 2020-12-02 18:58:08 +02:00
1 parent bce3500b5e
commit 1344d9a18a
1 file changed
+1 -1
+1 -1
View File
@@ -111,7 +111,7 @@ function decorateComment(node, comment, options, enclosingNode) {
return decorateComment(child, comment, options, child);
}
if (start <= commentStart) {
if (end <= commentStart) {
// This child node falls completely before the comment.
// Because we will never consider this node or any nodes
// before it again, this node must be the closest preceding