fix reoccurring typo
This commit is contained in:
parent
38104abf63
commit
7e830286c7
1 changed files with 10 additions and 10 deletions
|
@ -147,7 +147,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||||
/// even when new allocations are pushed to the `HashMap`. `copy_repeatedly` relies
|
/// even when new allocations are pushed to the `HashMap`. `copy_repeatedly` relies
|
||||||
/// on that.
|
/// on that.
|
||||||
///
|
///
|
||||||
/// It is the callers responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
fn get_bytes_internal(
|
fn get_bytes_internal(
|
||||||
&self,
|
&self,
|
||||||
cx: &impl HasDataLayout,
|
cx: &impl HasDataLayout,
|
||||||
|
@ -174,7 +174,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||||
/// Check that these bytes are initialized and not pointer bytes, and then return them
|
/// Check that these bytes are initialized and not pointer bytes, and then return them
|
||||||
/// as a slice.
|
/// as a slice.
|
||||||
///
|
///
|
||||||
/// It is the callers responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn get_bytes(
|
pub fn get_bytes(
|
||||||
&self,
|
&self,
|
||||||
|
@ -189,7 +189,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||||
/// It is the caller's responsibility to handle undefined and pointer bytes.
|
/// It is the caller's responsibility to handle undefined and pointer bytes.
|
||||||
/// However, this still checks that there are no relocations on the *edges*.
|
/// However, this still checks that there are no relocations on the *edges*.
|
||||||
///
|
///
|
||||||
/// It is the callers responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
#[inline]
|
#[inline]
|
||||||
pub fn get_bytes_with_undef_and_ptr(
|
pub fn get_bytes_with_undef_and_ptr(
|
||||||
&self,
|
&self,
|
||||||
|
@ -204,7 +204,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||||
/// Just calling this already marks everything as defined and removes relocations,
|
/// Just calling this already marks everything as defined and removes relocations,
|
||||||
/// so be sure to actually put data there!
|
/// so be sure to actually put data there!
|
||||||
///
|
///
|
||||||
/// It is the callers responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
pub fn get_bytes_mut(
|
pub fn get_bytes_mut(
|
||||||
&mut self,
|
&mut self,
|
||||||
cx: &impl HasDataLayout,
|
cx: &impl HasDataLayout,
|
||||||
|
@ -271,7 +271,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||||
|
|
||||||
/// Writes `src` to the memory starting at `ptr.offset`.
|
/// Writes `src` to the memory starting at `ptr.offset`.
|
||||||
///
|
///
|
||||||
/// It is the callers responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
pub fn write_bytes(
|
pub fn write_bytes(
|
||||||
&mut self,
|
&mut self,
|
||||||
cx: &impl HasDataLayout,
|
cx: &impl HasDataLayout,
|
||||||
|
@ -286,7 +286,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||||
|
|
||||||
/// Sets `count` bytes starting at `ptr.offset` with `val`. Basically `memset`.
|
/// Sets `count` bytes starting at `ptr.offset` with `val`. Basically `memset`.
|
||||||
///
|
///
|
||||||
/// It is the callers responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
pub fn write_repeat(
|
pub fn write_repeat(
|
||||||
&mut self,
|
&mut self,
|
||||||
cx: &impl HasDataLayout,
|
cx: &impl HasDataLayout,
|
||||||
|
@ -309,7 +309,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||||
/// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
|
/// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
|
||||||
/// being valid for ZSTs
|
/// being valid for ZSTs
|
||||||
///
|
///
|
||||||
/// It is the callers responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
pub fn read_scalar(
|
pub fn read_scalar(
|
||||||
&self,
|
&self,
|
||||||
cx: &impl HasDataLayout,
|
cx: &impl HasDataLayout,
|
||||||
|
@ -347,7 +347,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||||
|
|
||||||
/// Read a pointer-sized scalar.
|
/// Read a pointer-sized scalar.
|
||||||
///
|
///
|
||||||
/// It is the callers responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
pub fn read_ptr_sized(
|
pub fn read_ptr_sized(
|
||||||
&self,
|
&self,
|
||||||
cx: &impl HasDataLayout,
|
cx: &impl HasDataLayout,
|
||||||
|
@ -364,7 +364,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||||
/// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
|
/// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
|
||||||
/// being valid for ZSTs
|
/// being valid for ZSTs
|
||||||
///
|
///
|
||||||
/// It is the callers responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
pub fn write_scalar(
|
pub fn write_scalar(
|
||||||
&mut self,
|
&mut self,
|
||||||
cx: &impl HasDataLayout,
|
cx: &impl HasDataLayout,
|
||||||
|
@ -406,7 +406,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
|
||||||
|
|
||||||
/// Write a pointer-sized scalar.
|
/// Write a pointer-sized scalar.
|
||||||
///
|
///
|
||||||
/// It is the callers responsibility to check bounds and alignment beforehand.
|
/// It is the caller's responsibility to check bounds and alignment beforehand.
|
||||||
pub fn write_ptr_sized(
|
pub fn write_ptr_sized(
|
||||||
&mut self,
|
&mut self,
|
||||||
cx: &impl HasDataLayout,
|
cx: &impl HasDataLayout,
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue