Skip to content

Commit f45969a

Browse files
chaostheory88cole14
authored andcommitted
fix comment
1 parent 9192854 commit f45969a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/hash.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -257,7 +257,7 @@ impl<'data, E: EndianParse> GnuHashTable<'data, E> {
257257
strtab: &StringTable<'data>,
258258
) -> Result<Option<(usize, Symbol)>, ParseError> {
259259
// empty hash tables don't have any entries. This avoids a divde by zero in the modulus calculation,
260-
// and also avoids a potential overflow in the bloom filter calculation.
260+
// and also avoids a potential division by zero panic in the bloom filter index calculation.
261261
if self.buckets.is_empty() || self.hdr.nbloom == 0 {
262262
return Ok(None);
263263
}

0 commit comments

Comments
 (0)