Skip to content

Commit f356598

Browse files
committed
Unify comment and code concerning setTimeout value
The unit is millisecond in setTimeout first arg but in both corrected comments, it was mentioned 1 second whereas value was 100
1 parent 4bd125e commit f356598

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)