Skip to content

Commit 7e83028

Browse files
committed
fix reoccurring typo
1 parent 38104ab commit 7e83028

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

src/librustc/mir/interpret/allocation.rs

+10-10
Original file line numberDiff line numberDiff line change
@@ -147,7 +147,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
147147
/// even when new allocations are pushed to the `HashMap`. `copy_repeatedly` relies
148148
/// on that.
149149
///
150-
/// It is the callers responsibility to check bounds and alignment beforehand.
150+
/// It is the caller's responsibility to check bounds and alignment beforehand.
151151
fn get_bytes_internal(
152152
&self,
153153
cx: &impl HasDataLayout,
@@ -174,7 +174,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
174174
/// Check that these bytes are initialized and not pointer bytes, and then return them
175175
/// as a slice.
176176
///
177-
/// It is the callers responsibility to check bounds and alignment beforehand.
177+
/// It is the caller's responsibility to check bounds and alignment beforehand.
178178
#[inline]
179179
pub fn get_bytes(
180180
&self,
@@ -189,7 +189,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
189189
/// It is the caller's responsibility to handle undefined and pointer bytes.
190190
/// However, this still checks that there are no relocations on the *edges*.
191191
///
192-
/// It is the callers responsibility to check bounds and alignment beforehand.
192+
/// It is the caller's responsibility to check bounds and alignment beforehand.
193193
#[inline]
194194
pub fn get_bytes_with_undef_and_ptr(
195195
&self,
@@ -204,7 +204,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
204204
/// Just calling this already marks everything as defined and removes relocations,
205205
/// so be sure to actually put data there!
206206
///
207-
/// It is the callers responsibility to check bounds and alignment beforehand.
207+
/// It is the caller's responsibility to check bounds and alignment beforehand.
208208
pub fn get_bytes_mut(
209209
&mut self,
210210
cx: &impl HasDataLayout,
@@ -271,7 +271,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
271271

272272
/// Writes `src` to the memory starting at `ptr.offset`.
273273
///
274-
/// It is the callers responsibility to check bounds and alignment beforehand.
274+
/// It is the caller's responsibility to check bounds and alignment beforehand.
275275
pub fn write_bytes(
276276
&mut self,
277277
cx: &impl HasDataLayout,
@@ -286,7 +286,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
286286

287287
/// Sets `count` bytes starting at `ptr.offset` with `val`. Basically `memset`.
288288
///
289-
/// It is the callers responsibility to check bounds and alignment beforehand.
289+
/// It is the caller's responsibility to check bounds and alignment beforehand.
290290
pub fn write_repeat(
291291
&mut self,
292292
cx: &impl HasDataLayout,
@@ -309,7 +309,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
309309
/// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
310310
/// being valid for ZSTs
311311
///
312-
/// It is the callers responsibility to check bounds and alignment beforehand.
312+
/// It is the caller's responsibility to check bounds and alignment beforehand.
313313
pub fn read_scalar(
314314
&self,
315315
cx: &impl HasDataLayout,
@@ -347,7 +347,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
347347

348348
/// Read a pointer-sized scalar.
349349
///
350-
/// It is the callers responsibility to check bounds and alignment beforehand.
350+
/// It is the caller's responsibility to check bounds and alignment beforehand.
351351
pub fn read_ptr_sized(
352352
&self,
353353
cx: &impl HasDataLayout,
@@ -364,7 +364,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
364364
/// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
365365
/// being valid for ZSTs
366366
///
367-
/// It is the callers responsibility to check bounds and alignment beforehand.
367+
/// It is the caller's responsibility to check bounds and alignment beforehand.
368368
pub fn write_scalar(
369369
&mut self,
370370
cx: &impl HasDataLayout,
@@ -406,7 +406,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
406406

407407
/// Write a pointer-sized scalar.
408408
///
409-
/// It is the callers responsibility to check bounds and alignment beforehand.
409+
/// It is the caller's responsibility to check bounds and alignment beforehand.
410410
pub fn write_ptr_sized(
411411
&mut self,
412412
cx: &impl HasDataLayout,

0 commit comments

Comments
 (0)