Skip to content

Commit 9313c8f

Browse files
author
codelogicws
committed
done with selectionSort refactory for now
1 parent 01aeae1 commit 9313c8f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/ws/codelogic/algorithms/sort/SelectionSort.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -34,8 +34,8 @@ private void findSmallest(){
3434
}
3535

3636
private void handleSmallerValues() {
37-
boolean unsortedSelectionIsSmallerThenCurrentLowest = lowest.isLowerThen(suiter);
38-
if(unsortedSelectionIsSmallerThenCurrentLowest){
37+
boolean suiterIsSmallerThenCurrentLowest = lowest.isLowerThen(suiter);
38+
if(suiterIsSmallerThenCurrentLowest){
3939
lowest.set(suiter);
4040
}
4141
}

0 commit comments

Comments
 (0)