Skip to content

Commit 1f34c04

Browse files
danbevtargos
authored andcommitted
net: remove typo in setTimeout comment
This commit removes `lear` from the code comment in setTimeout. I'm not 100% sure this is a typo but I've struggled to think what it could mean. Hopefully someone else might be able to shed some light on this. PR-URL: #20576 Reviewed-By: James M Snell <[email protected]> Reviewed-By: Jeremiah Senkpiel <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: Luigi Pinca <[email protected]> Reviewed-By: Colin Ihrig <[email protected]>
1 parent 983cb26 commit 1f34c04

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

lib/net.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -411,7 +411,7 @@ Socket.prototype.setTimeout = function(msecs, callback) {
411411
// Type checking identical to timers.enroll()
412412
msecs = validateTimerDuration(msecs);
413413

414-
// Attempt to clear an existing timer lear in both cases -
414+
// Attempt to clear an existing timer in both cases -
415415
// even if it will be rescheduled we don't want to leak an existing timer.
416416
clearTimeout(this[kTimeout]);
417417

0 commit comments

Comments
 (0)