Skip to content

Commit

Permalink
fix typo: Explictly -> Explicitly
Browse files Browse the repository at this point in the history
  • Loading branch information
dwrensha committed Nov 15, 2024
1 parent 1322b2f commit 7c421f4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions capnp/src/private/layout.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit 7c421f4

Please sign in to comment.