Skip to content

Commit ba527b9

Browse files
committed
Fix scalafmt
1 parent 57db630 commit ba527b9

File tree

2 files changed

+6
-6
lines changed

2 files changed

+6
-6
lines changed

src/scala/BubbleSort.scala

+2-2
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ def bubble_sort(data: List[Int]): List[Int] = {
55
while (swapped == true) {
66
swapped = false
77
for (i <- 0 to sortedData.length - 2) {
8-
if (sortedData(i) > sortedData(i+1)) {
8+
if (sortedData(i) > sortedData(i + 1)) {
99
sortedData =
10-
sortedData.updated(i, sortedData(i+1)).updated(i+1, sortedData(i))
10+
sortedData.updated(i, sortedData(i + 1)).updated(i + 1, sortedData(i))
1111
swapped = true
1212
}
1313
}

src/scala/MinMaxRecursivo.scala

+4-4
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
def minMax(
2-
data: List[Int],
3-
minimum: Int,
4-
maximum: Int,
5-
index: Int
2+
data: List[Int],
3+
minimum: Int,
4+
maximum: Int,
5+
index: Int
66
): (Int, Int) = {
77
var min: Int = minimum
88
var max: Int = maximum

0 commit comments

Comments
 (0)