Skip to content

Commit 07d92ac

Browse files
authored
revert: got back to initial naming and added a marker
Added comment so that no one changes the Node class
1 parent dc6ab78 commit 07d92ac

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/_DataStructures_/LinkedList/index.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1+
// do not change the node class, you never know how many things it caan break! :)
12
class Node {
23
constructor(data, next) {
3-
this.my_data = data;
4+
this.data = data;
45
this.next = next;
56
}
67
}

0 commit comments

Comments
 (0)