Permalink
Browse files

Merge pull request #7 from kevinwestern/patch-1

'i' and 'j' should be declared as variables.
  • Loading branch information...
2 parents 3ac227d + 35bd7a7 commit 2c11beb4bb382f1048e5df572787089845e3812f @nzakas committed Jun 18, 2012
Showing with 1 addition and 1 deletion.
  1. +1 −1 algorithms/sorting/selection-sort/selection-sort.js
View
2 algorithms/sorting/selection-sort/selection-sort.js
@@ -44,7 +44,7 @@ function swap(items, firstIndex, secondIndex){
function selectionSort(items){
var len = items.length,
- min;
+ min, i, j;
for (i=0; i < len; i++){

0 comments on commit 2c11beb

Please sign in to comment.