Skip to content

Commit 14fec81

Browse files
committed
Merge pull request BonsaiDen#306 from ThomasG77/patch-1
Unify comment and code concerning setTimeout value
2 parents 4bd125e + f356598 commit 14fec81

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

doc/en/other/timeouts.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ intervals, result in function calls stacking up.
5555
function foo(){
5656
// something that blocks for 1 second
5757
}
58-
setInterval(foo, 100);
58+
setInterval(foo, 1000);
5959

6060
In the above code, `foo` will get called once and will then block for one second.
6161

@@ -70,7 +70,7 @@ the function itself.
7070

7171
function foo(){
7272
// something that blocks for 1 second
73-
setTimeout(foo, 100);
73+
setTimeout(foo, 1000);
7474
}
7575
foo();
7676

0 commit comments

Comments
 (0)