Skip to content

Commit 3fa72d2

Browse files
authored
oops
1 parent 090b0a0 commit 3fa72d2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/website/new-compiler.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ The old compiler generates:
8989
```js
9090
sum.value = 0;
9191
i.value = 1;
92-
for (var a0 = 100; a0 >= 0; a0--) {
92+
for (var a0 = 100; a0 >= 0.5; a0--) {
9393
sum.value = ((+sum.value || 0) + (+i.value || 0));
9494
i.value = ((+i.value || 0) + 1);
9595
}
@@ -102,7 +102,7 @@ The new compiler instead generates:
102102
```js
103103
sum.value = 0;
104104
i.value = 1;
105-
for (var a0 = 100; a0 >= 0.5; a0--) {
105+
for (var a0 = 100; a0 > 0; a0--) {
106106
sum.value = (sum.value + i.value);
107107
i.value = (i.value + 1);
108108
}

0 commit comments

Comments
 (0)