Skip to content

Commit e8d61de

Browse files
authored
chore: fix typo in safety comment
1 parent d282d48 commit e8d61de

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/identifier.rs

+1-1
Original file line numberDiff line numberDiff line change
@@ -248,7 +248,7 @@ impl Drop for Identifier {
248248
let size = bytes_for_varint(len) + len.get();
249249
let align = 2;
250250
// SAFETY: align is not zero, align is a power of two, and rounding
251-
// size up to align does not overflow usize::MAX. These guarantees were
251+
// size up to align does not overflow isize::MAX. These guarantees were
252252
// made when originally allocating this memory.
253253
let layout = unsafe { Layout::from_size_align_unchecked(size, align) };
254254
// SAFETY: ptr was previously allocated by the same allocator with the

0 commit comments

Comments
 (0)