diff options
| author | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2025-04-28 13:56:01 +0200 |
|---|---|---|
| committer | DaniPopes <57450786+DaniPopes@users.noreply.github.com> | 2025-04-28 13:58:27 +0200 |
| commit | f07cc409d30243cdeb4677e59cdf480d13bc5be5 (patch) | |
| tree | 373a49f4265978bed3556e635a3d20d896b65618 /library/alloc/src/vec/splice.rs | |
| parent | a932eb36f8adf6c8cdfc450f063943da3112d621 (diff) | |
| download | rust-f07cc409d30243cdeb4677e59cdf480d13bc5be5.tar.gz rust-f07cc409d30243cdeb4677e59cdf480d13bc5be5.zip | |
Rename sub_ptr to offset_from_unsigned in docs
Diffstat (limited to 'library/alloc/src/vec/splice.rs')
| -rw-r--r-- | library/alloc/src/vec/splice.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/splice.rs b/library/alloc/src/vec/splice.rs index ca5cb17f8bf..ed1a0dda76d 100644 --- a/library/alloc/src/vec/splice.rs +++ b/library/alloc/src/vec/splice.rs @@ -59,7 +59,7 @@ impl<I: Iterator, A: Allocator> Drop for Splice<'_, I, A> { // and moving things into the final place. // Which means we can replace the slice::Iter with pointers that won't point to deallocated // memory, so that Drain::drop is still allowed to call iter.len(), otherwise it would break - // the ptr.sub_ptr contract. + // the ptr.offset_from_unsigned contract. self.drain.iter = (&[]).iter(); unsafe { |
