mirror of
https://github.com/Ed94/Odin.git
synced 2026-08-07 08:08:50 +00:00
Removed some accidental semi-colons and converted indentation to tabs.
This commit is contained in:
@@ -182,7 +182,7 @@ binary_search_by :: proc(array: $A/[]$T, key: T, f: proc(T, T) -> Ordering) -> (
|
|||||||
right := size
|
right := size
|
||||||
|
|
||||||
for left < right {
|
for left < right {
|
||||||
mid := left + size / 2;
|
mid := left + size / 2
|
||||||
|
|
||||||
// Steps to verify this is in-bounds:
|
// Steps to verify this is in-bounds:
|
||||||
// 1. We note that `size` is strictly positive due to the loop condition
|
// 1. We note that `size` is strictly positive due to the loop condition
|
||||||
@@ -201,7 +201,7 @@ binary_search_by :: proc(array: $A/[]$T, key: T, f: proc(T, T) -> Ordering) -> (
|
|||||||
case .Greater: right = mid
|
case .Greater: right = mid
|
||||||
}
|
}
|
||||||
|
|
||||||
size = right - left;
|
size = right - left
|
||||||
}
|
}
|
||||||
|
|
||||||
return left, false
|
return left, false
|
||||||
|
|||||||
Reference in New Issue
Block a user