Skip to content

Commit

Permalink
Update bubble_sort!.jl (#12)
Browse files Browse the repository at this point in the history
Remove unnecessary `()` in `bubble_sort!`
  • Loading branch information
Moelf authored Nov 4, 2023
1 parent dc44280 commit df2c2a5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/bubble_sort!.jl
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
function bubble_sort!(X)
for i in 1:length(X), j in 1:length(X)-i
if X[j] > X[j+1]
(X[j+1], X[j]) = (X[j], X[j+1])
X[j+1], X[j] = X[j], X[j+1]
end
end
end
end

0 comments on commit df2c2a5

Please sign in to comment.