Skip to content

Commit

Permalink
Rename items_offset to slice_offset
Browse files Browse the repository at this point in the history
  • Loading branch information
nvzqz committed Nov 19, 2020
1 parent 5d9326c commit d20cdf9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/slice.rs
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ impl<H, T> HeaderSlice<H, T> {

/// Returns the offset from the base address of a header-slice to the slice.
#[inline]
pub(crate) fn items_offset() -> usize {
pub(crate) fn slice_offset() -> usize {
let dummy = HeaderSliceDummy::<H, T> {
header: MaybeUninit::uninit(),
slice: MaybeUninit::uninit(),
Expand Down

0 comments on commit d20cdf9

Please sign in to comment.