From e8d61deb8911d62c37908946bdec730c0fe5fc4f Mon Sep 17 00:00:00 2001 From: Tobias Schmitz Date: Thu, 28 Mar 2024 00:08:12 +0100 Subject: [PATCH] chore: fix typo in safety comment --- src/identifier.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/identifier.rs b/src/identifier.rs index 0273ae62..74a5ce7f 100644 --- a/src/identifier.rs +++ b/src/identifier.rs @@ -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