Skip to content

Commit 8d3a8c0

Browse files
committed
removed reference to stack in queue file
1 parent e981375 commit 8d3a8c0

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

modules/data-types/queue.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
* var queue = new dt.Queue();
66
*/
77
var Queue = function(){
8-
// Initialize the stack as a single array
8+
// Initialize the queue as a single array
99
this.values = [];
1010
};
1111

@@ -37,7 +37,7 @@ Queue.prototype.enqueue = function(value) {
3737
* console.log(queue);
3838
* //=> ['world','hello']
3939
*
40-
* stack.dequeue();
40+
* queue.dequeue();
4141
*
4242
* console.log(queue);
4343
* //=> ['world']

0 commit comments

Comments
 (0)