Skip to content

Commit 2aa3e3b

Browse files
committed
timers: fix enroll deprecation wording
PR-URL: #18704 Reviewed-By: Tiancheng "Timothy" Gu <timothygu99@gmail.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Сковорода Никита Андреевич <chalkerx@gmail.com> Reviewed-By: Jon Moss <me@jonathanmoss.me> Reviewed-By: Jeremiah Senkpiel <fishrock123@rocketmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com>
1 parent 316846b commit 2aa3e3b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/timers.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -379,7 +379,7 @@ function enroll(item, msecs) {
379379

380380
exports.enroll = util.deprecate(enroll,
381381
'timers.enroll() is deprecated. ' +
382-
'Please use clearTimeout instead.',
382+
'Please use setTimeout instead.',
383383
'DEP0095');
384384

385385

0 commit comments

Comments
 (0)