From f260d585d5f8e9183a40af6ab8bd8f7457b28c4d Mon Sep 17 00:00:00 2001 From: liukun4515 Date: Tue, 2 Aug 2022 11:04:42 +0800 Subject: [PATCH] optimizer the error message --- arrow/src/util/decimal.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/arrow/src/util/decimal.rs b/arrow/src/util/decimal.rs index 1d0adfa6d29b..90013e754423 100644 --- a/arrow/src/util/decimal.rs +++ b/arrow/src/util/decimal.rs @@ -255,7 +255,7 @@ fn singed_cmp_le_bytes(left: &[u8], right: &[u8]) -> Ordering { left.len(), right.len() ); - assert_ne!(left.len(), 0, "Can't compare bytes array with zero len"); + assert_ne!(left.len(), 0, "Can't compare bytes array of length 0"); let len = left.len(); let left_negative = left[len - 1] >= 0x80_u8; let right_negative = right[len - 1] >= 0x80_u8;