@@ -147,7 +147,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
147
147
/// even when new allocations are pushed to the `HashMap`. `copy_repeatedly` relies
148
148
/// on that.
149
149
///
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.
151
151
fn get_bytes_internal (
152
152
& self ,
153
153
cx : & impl HasDataLayout ,
@@ -174,7 +174,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
174
174
/// Check that these bytes are initialized and not pointer bytes, and then return them
175
175
/// as a slice.
176
176
///
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.
178
178
#[ inline]
179
179
pub fn get_bytes (
180
180
& self ,
@@ -189,7 +189,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
189
189
/// It is the caller's responsibility to handle undefined and pointer bytes.
190
190
/// However, this still checks that there are no relocations on the *edges*.
191
191
///
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.
193
193
#[ inline]
194
194
pub fn get_bytes_with_undef_and_ptr (
195
195
& self ,
@@ -204,7 +204,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
204
204
/// Just calling this already marks everything as defined and removes relocations,
205
205
/// so be sure to actually put data there!
206
206
///
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.
208
208
pub fn get_bytes_mut (
209
209
& mut self ,
210
210
cx : & impl HasDataLayout ,
@@ -271,7 +271,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
271
271
272
272
/// Writes `src` to the memory starting at `ptr.offset`.
273
273
///
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.
275
275
pub fn write_bytes (
276
276
& mut self ,
277
277
cx : & impl HasDataLayout ,
@@ -286,7 +286,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
286
286
287
287
/// Sets `count` bytes starting at `ptr.offset` with `val`. Basically `memset`.
288
288
///
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.
290
290
pub fn write_repeat (
291
291
& mut self ,
292
292
cx : & impl HasDataLayout ,
@@ -309,7 +309,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
309
309
/// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
310
310
/// being valid for ZSTs
311
311
///
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.
313
313
pub fn read_scalar (
314
314
& self ,
315
315
cx : & impl HasDataLayout ,
@@ -347,7 +347,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
347
347
348
348
/// Read a pointer-sized scalar.
349
349
///
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.
351
351
pub fn read_ptr_sized (
352
352
& self ,
353
353
cx : & impl HasDataLayout ,
@@ -364,7 +364,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
364
364
/// * in oder to obtain a `Pointer` we need to check for ZSTness anyway due to integer pointers
365
365
/// being valid for ZSTs
366
366
///
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.
368
368
pub fn write_scalar (
369
369
& mut self ,
370
370
cx : & impl HasDataLayout ,
@@ -406,7 +406,7 @@ impl<'tcx, Tag: Copy, Extra: AllocationExtra<Tag>> Allocation<Tag, Extra> {
406
406
407
407
/// Write a pointer-sized scalar.
408
408
///
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.
410
410
pub fn write_ptr_sized (
411
411
& mut self ,
412
412
cx : & impl HasDataLayout ,
0 commit comments