diff options
author | Turner Jabbour <doubleujabbour@gmail.com> | 2020-09-15 06:49:48 +0300 |
---|---|---|
committer | Rich Trott <rtrott@gmail.com> | 2020-09-17 22:20:50 +0300 |
commit | 59ca56eddefc78bab87d7e8e074b3af843ab1bc3 (patch) | |
tree | 745b3101b9c66c0e81290f86a8fefcccd65ef2a1 /doc/api/timers.md | |
parent | c314c04079bbf93d786a5855d0eaaed30d36820e (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.md | 17 |
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 |