Skip to content

Commit 300b900

Browse files
committed
Correct changelog example code
The previous example incorrectly showed that this PR would break lines before assignment operators. That is not the case. Lines still break after assignment operators, but boolean operators would move to the beginning of lines with this change. The examples now match explicit test cases that I've added.
1 parent babc54b commit 300b900

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

changelog_unreleased/javascript/pr-7111.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,8 +12,8 @@ var a =
1212
offset;
1313

1414
// Prettier master
15-
var a
16-
= Math.random() * (yRange * (1 - minVerticalFraction))
15+
var a =
16+
Math.random() * (yRange * (1 - minVerticalFraction))
1717
+ minVerticalFraction * yRange
1818
- offset;
1919
```

0 commit comments

Comments
 (0)