mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 14:54:52 +02:00
8320781: Fix whitespace in j.l.Double and j.u.z.ZipInputStream @snippets
Reviewed-by: lancea, bpb, darcy, jpai
This commit is contained in:
parent
a5ccd3beaf
commit
99f870c43f
2 changed files with 5 additions and 5 deletions
|
@ -316,7 +316,7 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
|
|||
*
|
||||
* {@snippet lang="java" :
|
||||
* double d = 0.0;
|
||||
* while(d != 1.0) { // Surprising infinite loop
|
||||
* while (d != 1.0) { // Surprising infinite loop
|
||||
* d += 0.1; // Sum never _exactly_ equals 1.0
|
||||
* }
|
||||
* }
|
||||
|
@ -325,7 +325,7 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
|
|||
*
|
||||
* {@snippet lang="java" :
|
||||
* double d = 0.0;
|
||||
* for(int i = 0; i < 10; i++) {
|
||||
* for (int i = 0; i < 10; i++) {
|
||||
* d += 0.1;
|
||||
* } // Value of d is equal to Math.nextDown(1.0).
|
||||
* }
|
||||
|
@ -335,7 +335,7 @@ import jdk.internal.vm.annotation.IntrinsicCandidate;
|
|||
*
|
||||
* {@snippet lang="java" :
|
||||
* double d = 0.0;
|
||||
* while(d <= 1.0) {
|
||||
* while (d <= 1.0) {
|
||||
* d += 0.1;
|
||||
* } // Value of d approximately 1.0999999999999999
|
||||
* }
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue