From df2c2a560e3b8751d418b09e3e843a07eb39535e Mon Sep 17 00:00:00 2001 From: Jerry Ling Date: Sat, 4 Nov 2023 18:54:18 -0400 Subject: [PATCH] Update bubble_sort!.jl (#12) Remove unnecessary `()` in `bubble_sort!` --- src/bubble_sort!.jl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/bubble_sort!.jl b/src/bubble_sort!.jl index d244430..0c5734e 100644 --- a/src/bubble_sort!.jl +++ b/src/bubble_sort!.jl @@ -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 \ No newline at end of file +end