Skip to content

Commit 4f2afd7

Browse files
Copilotjanbodnar
andcommitted
Fix array literal formatting in floating-point.md
Co-authored-by: janbodnar <16985640+janbodnar@users.noreply.github.com>
1 parent 6570c7d commit 4f2afd7

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

floating-point.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -198,8 +198,10 @@ numerical code.
198198
```java
199199
void main() {
200200

201-
double[] values = {1.0, Double.NaN, Double.POSITIVE_INFINITY,
202-
Double.NEGATIVE_INFINITY, 0.0, -0.0};
201+
double[] values = {
202+
1.0, Double.NaN, Double.POSITIVE_INFINITY,
203+
Double.NEGATIVE_INFINITY, 0.0, -0.0
204+
};
203205

204206
for (double v : values) {
205207
IO.println(v + " -> isNaN: " + Double.isNaN(v) +

0 commit comments

Comments
 (0)