Skip to content

Commit 140836a

Browse files
goto-bus-stoptargos
authored andcommitted
util: fix comment typos
When the deep(Strict)Equal comparison functions were moved to an internal module, a variable named `current` was replaced with `val1`. That accidentally also replaced a few "currently"s in comments. Refs: #16084 PR-URL: #21436 Reviewed-By: Daniel Bevenius <daniel.bevenius@gmail.com> Reviewed-By: Weijia Wang <starkwang@126.com> Reviewed-By: Colin Ihrig <cjihrig@gmail.com> Reviewed-By: Ruben Bridgewater <ruben@bridgewater.de> Reviewed-By: James M Snell <jasnell@gmail.com> Reviewed-By: Tobias Nießen <tniessen@tnie.de> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent 91f111f commit 140836a

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

lib/internal/util/comparisons.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -287,7 +287,7 @@ function setHasEqualElement(set, val1, strict, memo) {
287287
return false;
288288
}
289289

290-
// Note: we val1ly run this multiple times for each loose key!
290+
// Note: we currently run this multiple times for each loose key!
291291
// This is done to prevent slowing down the average case.
292292
function setHasLoosePrim(a, b, val) {
293293
const altValues = findLooseMatchingPrimitives(val);
@@ -381,9 +381,9 @@ function findLooseMatchingPrimitives(prim) {
381381
}
382382

383383
// This is a ugly but relatively fast way to determine if a loose equal entry
384-
// val1ly has a correspondent matching entry. Otherwise checking for such
384+
// currently has a correspondent matching entry. Otherwise checking for such
385385
// values would be way more expensive (O(n^2)).
386-
// Note: we val1ly run this multiple times for each loose key!
386+
// Note: we currently run this multiple times for each loose key!
387387
// This is done to prevent slowing down the average case.
388388
function mapHasLoosePrim(a, b, key1, memo, item1, item2) {
389389
const altKeys = findLooseMatchingPrimitives(key1);

0 commit comments

Comments
 (0)