Skip to content

Commit 64ac5c6

Browse files
wjabbourruyadorno
authored andcommitted
doc: fix small grammatical issues in timers.md
PR-URL: #35203 Reviewed-By: Anna Henningsen <anna@addaleax.net> Reviewed-By: Rich Trott <rtrott@gmail.com>
1 parent 8357b56 commit 64ac5c6

File tree

1 file changed

+8
-9
lines changed

1 file changed

+8
-9
lines changed

doc/api/timers.md

+8-9
Original file line numberDiff line numberDiff line change
@@ -130,15 +130,14 @@ of the Node.js application.
130130
added: v14.9.0
131131
-->
132132

133-
* Returns: {integer} number that can be used to reference this `timeout`
134-
135-
Coerce a `Timeout` to a primitive, a primitive will be generated that
136-
can be used to clear the `Timeout`.
137-
The generated number can only be used in the same thread where timeout
138-
was created. Therefore to use it cross [`worker_threads`][] it has
139-
to first be passed to a correct thread.
140-
This allows enhanced compatibility with browser's `setTimeout()`, and
141-
`setInterval()` implementations.
133+
* Returns: {integer} a number that can be used to reference this `timeout`
134+
135+
Coerce a `Timeout` to a primitive. The primitive can be used to
136+
clear the `Timeout`. The primitive can only be used in the
137+
same thread where the timeout was created. Therefore, to use it
138+
across [`worker_threads`][] it must first be passed to the correct
139+
thread. This allows enhanced compatibility with browser
140+
`setTimeout()` and `setInterval()` implementations.
142141

143142
## Scheduling timers
144143

0 commit comments

Comments
 (0)