Skip to content

Commit 22e8f8c

Browse files
authored
Merge pull request #8 from francisngo/solutions
fix typo 'Infinity' Addresses issue: #6
2 parents 0e9006d + 3092c6b commit 22e8f8c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

data-structures/queue.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -120,7 +120,7 @@ Queue.prototype.until = function(value) {
120120
// EXERCISES
121121
// Implement a queue using two stacks
122122
function Stack(capacity) {
123-
this._capacity = capacity || Infninty;
123+
this._capacity = capacity || Infinity;
124124
this._storage = {};
125125
this._count = 0;
126126
}

0 commit comments

Comments
 (0)