chore: Fix typos and add various comments

This commit is contained in:
Katherine Watson
2024-08-07 23:11:13 -07:00
parent 6d47169a5c
commit 9fd3df67ed
7 changed files with 18 additions and 12 deletions

View File

@@ -16,7 +16,7 @@ pub trait ZerocopySliceExt: Sized + ByteSlice {
}
fn zk_parse_suffix<T>(self) -> anyhow::Result<Ref<Self, T>> {
self.zk_ref_maker().from_prefix()?.parse()
self.zk_ref_maker().from_suffix()?.parse()
}
}
@@ -31,8 +31,8 @@ pub trait ZerocopyMutSliceExt: ZerocopySliceExt + Sized + ByteSliceMut {
self.zk_ref_maker().from_prefix()?.make_zeroized()
}
fn zk_zeroized_from_suffic<T>(self) -> anyhow::Result<Ref<Self, T>> {
self.zk_ref_maker().from_prefix()?.make_zeroized()
fn zk_zeroized_from_suffix<T>(self) -> anyhow::Result<Ref<Self, T>> {
self.zk_ref_maker().from_suffix()?.make_zeroized()
}
}