aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorsobolevn <mail@sobolevn.me>2024-08-17 23:21:35 +0300
committerLouis Pilfold <louis@lpil.uk>2024-08-24 13:07:53 +0100
commit91f89f3c323609a7f301ef2d66d0bb542a379956 (patch)
tree83ac13df23972d1393c956567b3011ed3f3b7785 /src
parent905e8d6e6db8ad0dfc061861cef5ccb96f84012b (diff)
downloadgleam_stdlib-91f89f3c323609a7f301ef2d66d0bb542a379956.tar.gz
gleam_stdlib-91f89f3c323609a7f301ef2d66d0bb542a379956.zip
Fix tests
Diffstat (limited to 'src')
-rw-r--r--src/gleam/bit_array.gleam4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/gleam/bit_array.gleam b/src/gleam/bit_array.gleam
index e0cf4f2..af78fcc 100644
--- a/src/gleam/bit_array.gleam
+++ b/src/gleam/bit_array.gleam
@@ -212,9 +212,7 @@ fn do_compare(first: BitArray, second: BitArray, index: Int) -> order.Order {
case slice(first, index, 1), slice(second, index, 1) {
Ok(<<first_byte>>), Ok(<<second_byte>>) ->
int.compare(first_byte, second_byte)
- |> order.lazy_break_tie(fn() {
- do_compare(first, second, index + 1)
- })
+ |> order.lazy_break_tie(fn() { do_compare(first, second, index + 1) })
// First has more items, example: "AB" > "A":
Ok(_), Error(_) -> order.Gt