8000 💄 : remove redundant code · losefor/rust-sorting-algorithims@f3c4718 · GitHub
[go: up one dir, main page]

Skip to content

Commit f3c4718

Browse files
committed
💄 : remove redundant code
1 parent e125aa5 commit f3c4718

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

‎src/bubble_sort/bubble_sort.rs

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,4 @@ fn swap(array: &mut [i32], index1: usize, index2: usize) {
2323
array[index1] += array[index2];
2424
array[index2] = array[index1] - array[index2];
2525
array[index1] -= array[index2];
26-
}
27-
28-
// 3 , 4
29-
// first = 3 + 4 = 7
30-
// second = 7 - 4 = 3
31-
// first = 7 - second = 4
26+
}

0 commit comments

Comments
 (0)
0