From 817f78ace479fe7f4d17edb2f0e9873803337e40 Mon Sep 17 00:00:00 2001 From: Zack Slayton Date: Thu, 7 Nov 2024 13:20:21 -0500 Subject: [PATCH] fix typo in `has` methods --- src/lazy/binary/raw/v1_1/e_expression.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lazy/binary/raw/v1_1/e_expression.rs b/src/lazy/binary/raw/v1_1/e_expression.rs index 3be383c9..1abe2b2d 100644 --- a/src/lazy/binary/raw/v1_1/e_expression.rs +++ b/src/lazy/binary/raw/v1_1/e_expression.rs @@ -90,7 +90,7 @@ impl<'top> BinaryEExpression_1_1<'top> { /// Returns `true` if this binary e-expression includes a length prefix. pub fn has_length_prefix(&self) -> bool { // If these offsets are equal, there are no bytes representing the length. - self.length_offset == self.bitmap_offset + self.length_offset != self.bitmap_offset } /// Returns a span of bytes representing the length prefix. If there is no length prefix, @@ -104,8 +104,8 @@ impl<'top> BinaryEExpression_1_1<'top> { /// Returns `true` if this binary e-expression includes an argument encoding bitmap. pub fn has_bitmap(&self) -> bool { - // If these offsets are equal, there are no bytes representing the length. - self.bitmap_offset == self.args_offset + // If these offsets are equal, there are no bytes representing the bitmap. + self.bitmap_offset != self.args_offset } /// Returns a span of bytes representing the e-expression's argument encoding bitmap.