Skip to content

Commit

Permalink
Merge pull request #313 from Saecki/patch-1
Browse files Browse the repository at this point in the history
chore: fix typo in safety comment
  • Loading branch information
dtolnay authored Mar 27, 2024
2 parents d282d48 + e8d61de commit 73b5d9e
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 73b5d9e

Please sign in to comment.