Skip to content

Commit

Permalink
chore: fix typo in safety comment
Browse files Browse the repository at this point in the history
  • Loading branch information
saecki committed Mar 27, 2024
1 parent d282d48 commit e8d61de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/identifier.rs
Original file line number Diff line number Diff line change
Expand Up @@ -248,7 +248,7 @@ impl Drop for Identifier {
let size = bytes_for_varint(len) + len.get();
let align = 2;
// SAFETY: align is not zero, align is a power of two, and rounding
// size up to align does not overflow usize::MAX. These guarantees were
// size up to align does not overflow isize::MAX. These guarantees were
// made when originally allocating this memory.
let layout = unsafe { Layout::from_size_align_unchecked(size, align) };
// SAFETY: ptr was previously allocated by the same allocator with the
Expand Down

0 comments on commit e8d61de

Please sign in to comment.