Skip to content

Commit 39f6240

Browse files
alexbostockMylesBorins
authored andcommitted
linkedlist: correct grammar in comments
PR-URL: #14546 Reviewed-By: Vse Mozhet Byt <[email protected]> Reviewed-By: Tobias Nießen <[email protected]> Reviewed-By: Timothy Gu <[email protected]>
1 parent dbb6520 commit 39f6240

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

lib/internal/linkedlist.js

+5-5
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ function create() {
1414
}
1515
exports.create = create;
1616

17-
// show the most idle item
17+
// Show the most idle item.
1818
function peek(list) {
1919
if (list._idlePrev === list) return null;
2020
return list._idlePrev;
@@ -31,7 +31,7 @@ function shift(list) {
3131
exports.shift = shift;
3232

3333

34-
// remove a item from its list
34+
// Remove an item from its list.
3535
function remove(item) {
3636
if (item._idleNext) {
3737
item._idleNext._idlePrev = item._idlePrev;
@@ -47,18 +47,18 @@ function remove(item) {
4747
exports.remove = remove;
4848

4949

50-
// remove a item from its list and place at the end.
50+
// Remove an item from its list and place at the end.
5151
function append(list, item) {
5252
if (item._idleNext || item._idlePrev) {
5353
remove(item);
5454
}
5555

56-
// items are linked with _idleNext -> (older) and _idlePrev -> (newer)
56+
// Items are linked with _idleNext -> (older) and _idlePrev -> (newer).
5757
// Note: This linkage (next being older) may seem counter-intuitive at first.
5858
item._idleNext = list._idleNext;
5959
item._idlePrev = list;
6060

61-
// the list _idleNext points to tail (newest) and _idlePrev to head (oldest)
61+
// The list _idleNext points to tail (newest) and _idlePrev to head (oldest).
6262
list._idleNext._idlePrev = item;
6363
list._idleNext = item;
6464
}

0 commit comments

Comments
 (0)