Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nodejs/node.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTurner Jabbour <doubleujabbour@gmail.com>2020-09-15 06:49:48 +0300
committerRich Trott <rtrott@gmail.com>2020-09-17 22:20:50 +0300
commit59ca56eddefc78bab87d7e8e074b3af843ab1bc3 (patch)
tree745b3101b9c66c0e81290f86a8fefcccd65ef2a1 /doc/api/timers.md
parentc314c04079bbf93d786a5855d0eaaed30d36820e (diff)
doc: fix small grammatical issues in timers.md
PR-URL: https://github.com/nodejs/node/pull/35203 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
Diffstat (limited to 'doc/api/timers.md')
-rw-r--r--doc/api/timers.md17
1 files changed, 8 insertions, 9 deletions
diff --git a/doc/api/timers.md b/doc/api/timers.md
index 6e7f91b1dc3..71206324dc5 100644
--- a/doc/api/timers.md
+++ b/doc/api/timers.md
@@ -130,15 +130,14 @@ of the Node.js application.
added: v14.9.0
-->
-* Returns: {integer} number that can be used to reference this `timeout`
-
-Coerce a `Timeout` to a primitive, a primitive will be generated that
-can be used to clear the `Timeout`.
-The generated number can only be used in the same thread where timeout
-was created. Therefore to use it cross [`worker_threads`][] it has
-to first be passed to a correct thread.
-This allows enhanced compatibility with browser's `setTimeout()`, and
-`setInterval()` implementations.
+* Returns: {integer} a number that can be used to reference this `timeout`
+
+Coerce a `Timeout` to a primitive. The primitive can be used to
+clear the `Timeout`. The primitive can only be used in the
+same thread where the timeout was created. Therefore, to use it
+across [`worker_threads`][] it must first be passed to the correct
+thread. This allows enhanced compatibility with browser
+`setTimeout()` and `setInterval()` implementations.
## Scheduling timers