Skip to content

Commit e1ba5fe

Browse files
committed
format with julefmt
1 parent 8002008 commit e1ba5fe

File tree

13 files changed

+29
-33
lines changed

13 files changed

+29
-33
lines changed

search/interpolation.jule

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -27,17 +27,14 @@ fn Interpolation(sortedData: []int, guess: int)!: int {
2727
mid--
2828
}
2929
ret mid
30-
3130
}
3231

3332
// adjust our guess and continue
3433
if sortedData[mid] > guess {
35-
high, highVal = mid-1, sortedData[high]
36-
34+
high, highVal = mid - 1, sortedData[high]
3735
} else {
38-
low, lowVal = mid+1, sortedData[low]
36+
low, lowVal = mid + 1, sortedData[low]
3937
}
40-
4138
}
4239

4340
if guess == lowVal {

search/jump.jule

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,5 +48,4 @@ fn Jump(array: []int, target: int)!: int {
4848
}
4949

5050
error(Error.NotFound)
51-
5251
}

search/linear.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,4 @@ fn Linear(array: []int, query: int)!: int {
66
}
77
}
88
error(Error.NotFound)
9-
}
9+
}

sort/bucket.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,4 +39,4 @@ fn Bucket[T: numeric](mut arr: []T): []T {
3939
}
4040

4141
ret sorted
42-
}
42+
}

sort/circle.jule

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,8 @@ fn Circle[T: ordered](mut arr: []T): []T {
33
if len(arr) == 0 {
44
ret arr
55
}
6-
for doSort(arr, 0, len(arr)-1) {}
6+
for doSort(arr, 0, len(arr)-1) {
7+
}
78
ret arr
89
}
910

@@ -35,4 +36,4 @@ fn doSort[T: ordered](mut arr: []T, left: int, right: int): bool {
3536
rightHalf := doSort(arr, mid+1, right)
3637

3738
ret swapped || leftHalf || rightHalf
38-
}
39+
}

sort/cocktail.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,4 +49,4 @@ fn Cocktail[T: ordered](mut arr: []T): []T {
4949
}
5050

5151
ret arr
52-
}
52+
}

sort/comb.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,4 +27,4 @@ fn Comb[T: ordered](mut data: []T): []T {
2727
}
2828
}
2929
ret data
30-
}
30+
}

sort/count.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,4 +28,4 @@ fn Count[T: int | i64 | i32 | i16 | i8 | uint | u8 | u16 | u32 | u64](mut data:
2828
}
2929
}
3030
ret data
31-
}
31+
}

sort/cycle.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,4 +51,4 @@ fn Cycle[T: numeric](mut arr: []T): []T {
5151
}
5252

5353
ret arr
54-
}
54+
}

sort/exchange.jule

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,4 +12,4 @@ fn Exchange[T: ordered](mut arr: []T): []T {
1212
}
1313
}
1414
ret arr
15-
}
15+
}

0 commit comments

Comments
 (0)