timers: fix enroll deprecation wording
PR-URL: https://github.com/nodejs/node/pull/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>
This commit is contained in:
parent
316846b8de
commit
2aa3e3b00f
@ -379,7 +379,7 @@ function enroll(item, msecs) {
|
||||
|
||||
exports.enroll = util.deprecate(enroll,
|
||||
'timers.enroll() is deprecated. ' +
|
||||
'Please use clearTimeout instead.',
|
||||
'Please use setTimeout instead.',
|
||||
'DEP0095');
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user