Skip to content

Commit d7fa525

Browse files
committed
chore: fix Julia example
1 parent 47baeeb commit d7fa525

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/bubble.jl

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import Base.Sort
2-
immutable BubbleSortAlg <: Sort.Algorithm end
2+
struct BubbleSortAlg <: Sort.Algorithm end
33
const BubbleSort = BubbleSortAlg()
44

55
function Base.sort!(v::AbstractVector, lo::Int, hi::Int, ::BubbleSortAlg, o::Sort.Ordering)
@@ -15,3 +15,5 @@ while true
1515
end
1616
return v
1717
end
18+
19+
println("Done!")

0 commit comments

Comments
 (0)