Skip to content

Commit

Permalink
fix typo in has methods
Browse files Browse the repository at this point in the history
  • Loading branch information
zslayton committed Nov 7, 2024
1 parent 0c2c23c commit 817f78a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/lazy/binary/raw/v1_1/e_expression.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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.
Expand Down

0 comments on commit 817f78a

Please sign in to comment.