From 7c421f44e58c8175cec224fa8e4bd3ed4eaa049d Mon Sep 17 00:00:00 2001 From: David Renshaw Date: Fri, 15 Nov 2024 10:27:53 -0500 Subject: [PATCH] fix typo: Explictly -> Explicitly --- capnp/src/private/layout.rs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/capnp/src/private/layout.rs b/capnp/src/private/layout.rs index dcd1285e8..47c6233b8 100644 --- a/capnp/src/private/layout.rs +++ b/capnp/src/private/layout.rs @@ -3426,7 +3426,7 @@ impl<'a> StructReader<'a> { pub fn get_data_section_as_blob(&self) -> &'a [u8] { if self.data_size == 0 { - // Explictly handle this case to avoid forming a slice to a null pointer, + // Explicitly handle this case to avoid forming a slice to a null pointer, // which would be undefined behavior. &[] } else { @@ -3833,7 +3833,7 @@ impl<'a> ListReader<'a> { pub(crate) fn into_raw_bytes(self) -> &'a [u8] { if self.element_count == 0 { - // Explictly handle this case to avoid forming a slice to a null pointer, + // Explicitly handle this case to avoid forming a slice to a null pointer, // which would be undefined behavior. &[] } else { @@ -4088,7 +4088,7 @@ impl<'a> ListBuilder<'a> { pub(crate) fn as_raw_bytes(&self) -> &'a mut [u8] { if self.element_count == 0 { - // Explictly handle this case to avoid forming a slice to a null pointer, + // Explicitly handle this case to avoid forming a slice to a null pointer, // which would be undefined behavior. &mut [] } else {