We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 43090be commit f8a0ec8Copy full SHA for f8a0ec8
src/algorithms/sorting/insertion-sort/InsertionSort.js
@@ -21,7 +21,8 @@ export default class InsertionSort extends Sort {
21
this.callbacks.visitingCallback(array[currentIndex - 1]);
22
23
// Swap the elements.
24
- [array[currentIndex - 1], array[currentIndex]] = [array[currentIndex], array[currentIndex - 1]]
+ [array[currentIndex - 1], array[currentIndex]] = [
25
+ array[currentIndex], array[currentIndex - 1]];
26
27
// Shift current index left.
28
currentIndex -= 1;
0 commit comments