Fixed the typo in comments
This commit is contained in:
parent
d0517d232f
commit
112593b415
|
@ -18,7 +18,7 @@ public class CircularLinkedList {
|
||||||
tail.nextNode = newNode;
|
tail.nextNode = newNode;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Irrespective of whether or not elements are addNodeed, assign the
|
// Irrespective of whether or not elements are added, assign the
|
||||||
// tail to newNode and the nextNode for tail as head
|
// tail to newNode and the nextNode for tail as head
|
||||||
tail = newNode;
|
tail = newNode;
|
||||||
tail.nextNode = head;
|
tail.nextNode = head;
|
||||||
|
|
Loading…
Reference in New Issue