Skip to content

Commit 2a89e21

Browse files
Update 05-CircularLinkedList2.js
fix some errors
1 parent 7868536 commit 2a89e21

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

chapter05/05-CircularLinkedList2.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -133,8 +133,8 @@ let CircularLinkedList2 = (function () {
133133

134134
remove(element) {
135135

136-
let index = indexOf(element);
137-
return removeAt(index);
136+
let index = this.indexOf(element);
137+
return this.removeAt(index);
138138
}
139139

140140
indexOf(element) {
@@ -198,4 +198,4 @@ let CircularLinkedList2 = (function () {
198198
}
199199
}
200200
return CircularLinkedList2;
201-
})();
201+
})();

0 commit comments

Comments
 (0)