aboutsummaryrefslogtreecommitdiff
path: root/core/slice
diff options
context:
space:
mode:
authorgingerBill <bill@gingerbill.org>2024-06-29 19:07:34 +0100
committergingerBill <bill@gingerbill.org>2024-06-29 19:07:34 +0100
commit3f9a58808cd95946043ab38523588aec5d8c68dc (patch)
tree05083ccf8376a91d023ee84aa0e4ba4f066ab7a1 /core/slice
parente8517e2694524a94ee88cf925a4a667fb6575f90 (diff)
More style improvements
Diffstat (limited to 'core/slice')
-rw-r--r--core/slice/slice.odin3
1 files changed, 1 insertions, 2 deletions
diff --git a/core/slice/slice.odin b/core/slice/slice.odin
index 06f08fda2..56cb25b4c 100644
--- a/core/slice/slice.odin
+++ b/core/slice/slice.odin
@@ -156,8 +156,7 @@ linear_search_proc :: proc(array: $A/[]$T, f: proc(T) -> bool) -> (index: int, f
*/
@(require_results)
binary_search :: proc(array: $A/[]$T, key: T) -> (index: int, found: bool)
- where intrinsics.type_is_ordered(T) #no_bounds_check
-{
+ where intrinsics.type_is_ordered(T) #no_bounds_check {
return binary_search_by(array, key, cmp_proc(T))
}