Skip to content

Commit 1cc07f1

Browse files
committed
Fix Grammar
1 parent 892b8c9 commit 1cc07f1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/main/java/com/thealgorithms/datastructures/queues/LinkedQueue.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@ public T peek(int pos) {
134134

135135
/**
136136
* Node iterator, allows to travel through
137-
* the nodes using for() loop of forEach(Consumer)
137+
* the nodes using for() loop or forEach(Consumer)
138138
*/
139139

140140
@Override

src/test/java/com/thealgorithms/datastructures/queues/LinkedQueueTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ public void testQue() {
1919

2020
final int[] element = { 1 };
2121

22-
// iterates over al the elements present
22+
// iterates over all the elements present
2323
// as in the form of nodes
2424
queue.forEach(integer -> {
2525
if (element[0]++ != integer)

0 commit comments

Comments
 (0)