Skip to content

Commit

Permalink
Fix typo in setInterval/setTimeout to be 1000, not 100.
Browse files Browse the repository at this point in the history
Addresses BonsaiDen#119
  • Loading branch information
erawk committed Jan 16, 2012
1 parent fd10697 commit 62aa1a2
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 16 deletions.
4 changes: 2 additions & 2 deletions doc/en/other/timeouts.md
Expand Up @@ -52,7 +52,7 @@ intervals, result in function calls stacking up.
function foo(){
// something that blocks for 1 second
}
setInterval(foo, 100);
setInterval(foo, 1000);

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

Expand All @@ -67,7 +67,7 @@ the function itself.

function foo(){
// something that blocks for 1 second
setTimeout(foo, 100);
setTimeout(foo, 1000);
}
foo();

Expand Down
4 changes: 2 additions & 2 deletions doc/fi/other/timeouts.md
Expand Up @@ -34,7 +34,7 @@ Mikäli suoritettava koodi blokkaa katkaisufunktion kutsun, `setInterval` lisä
function foo(){
// jotain joka blokkaa sekunnin ajaksi
}
setInterval(foo, 100);
setInterval(foo, 1000);

Yllä olevassa koodissa `foo`-funktiota kutsutaan, jonka jälleen se blokkaa sekunnin ajan.

Expand All @@ -46,7 +46,7 @@ Helpoin ja joustavin tapa on käyttää `setTimeout`-funktiota funktiossa itsess

function foo(){
// jotain joka blokkaa sekunnin ajaksi
setTimeout(foo, 100);
setTimeout(foo, 1000);
}
foo();

Expand Down
4 changes: 2 additions & 2 deletions doc/ja/other/timeouts.md
Expand Up @@ -40,7 +40,7 @@ JavaScriptは非同期なので、`setTimeout`と`setInterval`関数を使って
function foo(){
// 1秒おきにブロックの何かを実行
}
setInterval(foo, 100);
setInterval(foo, 1000);

上記のコードでは、`foo`が1回呼び出されて、1秒ブロックされます。

Expand All @@ -52,7 +52,7 @@ JavaScriptは非同期なので、`setTimeout`と`setInterval`関数を使って

function foo(){
// 1秒ブロックする何か
setTimeout(foo, 100);
setTimeout(foo, 1000);
}
foo();

Expand Down
4 changes: 2 additions & 2 deletions doc/ko/other/timeouts.md
Expand Up @@ -34,7 +34,7 @@ JavaScript 엔진의 단위 시간(timer resolution)에 따라서 코드를 실
function foo(){
// 1초 동안 블럭함.
}
setInterval(foo, 100);
setInterval(foo, 1000);

`foo`는 단순히 호출될 때마다 1초 동안 블럭하는 함수다.

Expand All @@ -46,7 +46,7 @@ JavaScript 엔진의 단위 시간(timer resolution)에 따라서 코드를 실

function foo(){
// something that blocks for 1 second
setTimeout(foo, 100);
setTimeout(foo, 1000);
}
foo();

Expand Down
4 changes: 2 additions & 2 deletions doc/pl/other/timeouts.md
Expand Up @@ -55,7 +55,7 @@ szczególnie przy krótkim interwale.
function foo(){
// coś co blokuje wykonanie na 1 sekundę
}
setInterval(foo, 100);
setInterval(foo, 1000);

W powyższym kodzie kod `foo` zostanie wywołany tylko raz i zablokuje wywołanie na
jedną sekundę.
Expand All @@ -71,7 +71,7 @@ wewnątrz wywoływanej funkcji.

function foo(){
// coś co blokuje wykonanie na 1 sekundę
setTimeout(foo, 100);
setTimeout(foo, 1000);
}
foo();

Expand Down
4 changes: 2 additions & 2 deletions doc/ru/other/timeouts.md
Expand Up @@ -35,7 +35,7 @@
function foo(){
// что-то, что выполняется одну секунду
}
setInterval(foo, 100);
setInterval(foo, 1000);

В приведённом коде `foo` выполнится один раз и заблокирует этим главный поток на одну секунду.

Expand All @@ -47,7 +47,7 @@

function foo(){
// что-то, выполняющееся одну секунду
setTimeout(foo, 100);
setTimeout(foo, 1000);
}
foo();

Expand Down
4 changes: 2 additions & 2 deletions doc/tr/other/timeouts.md
Expand Up @@ -55,7 +55,7 @@ kullanıldığında, fonksiyon çağrılarının istiflenmesine neden olur.
function foo(){
// 1 saniye süren bir işlem
}
setInterval(foo, 100);
setInterval(foo, 1000);

Yukarıdaki örnekte `foo` fonksiyonu bir kez çağrılıp bir saniye boyunca bloke
edecektir.
Expand All @@ -71,7 +71,7 @@ kullanmaktır.

function foo(){
// 1 saniye süren bir işlem
setTimeout(foo, 100);
setTimeout(foo, 1000);
}
foo();

Expand Down
4 changes: 2 additions & 2 deletions doc/zh/other/timeouts.md
Expand Up @@ -40,7 +40,7 @@
function foo(){
// 阻塞执行 1 秒
}
setInterval(foo, 100);
setInterval(foo, 1000);

上面代码中,`foo` 会执行一次随后被阻塞了一分钟。

Expand All @@ -53,7 +53,7 @@

function foo(){
// 阻塞执行 1 秒
setTimeout(foo, 100);
setTimeout(foo, 1000);
}
foo();

Expand Down

0 comments on commit 62aa1a2

Please sign in to comment.