about summary refs log tree commit diff
path: root/library/alloc/src/vec/into_iter.rs
diff options
context:
space:
mode:
authorDaniPopes <57450786+DaniPopes@users.noreply.github.com>2025-04-28 13:56:01 +0200
committerDaniPopes <57450786+DaniPopes@users.noreply.github.com>2025-04-28 13:58:27 +0200
commitf07cc409d30243cdeb4677e59cdf480d13bc5be5 (patch)
tree373a49f4265978bed3556e635a3d20d896b65618 /library/alloc/src/vec/into_iter.rs
parenta932eb36f8adf6c8cdfc450f063943da3112d621 (diff)
downloadrust-f07cc409d30243cdeb4677e59cdf480d13bc5be5.tar.gz
rust-f07cc409d30243cdeb4677e59cdf480d13bc5be5.zip
Rename sub_ptr to offset_from_unsigned in docs
Diffstat (limited to 'library/alloc/src/vec/into_iter.rs')
-rw-r--r--library/alloc/src/vec/into_iter.rs2
1 files changed, 1 insertions, 1 deletions
diff --git a/library/alloc/src/vec/into_iter.rs b/library/alloc/src/vec/into_iter.rs
index 3eee988b6c9..1af110691ba 100644
--- a/library/alloc/src/vec/into_iter.rs
+++ b/library/alloc/src/vec/into_iter.rs
@@ -168,7 +168,7 @@ impl<T, A: Allocator> IntoIter<T, A> {
 
         // SAFETY: This allocation originally came from a `Vec`, so it passes
         // all those checks. We have `this.buf` ≤ `this.ptr` ≤ `this.end`,
-        // so the `sub_ptr`s below cannot wrap, and will produce a well-formed
+        // so the `offset_from_unsigned`s below cannot wrap, and will produce a well-formed
         // range. `end` ≤ `buf + cap`, so the range will be in-bounds.
         // Taking `alloc` is ok because nothing else is going to look at it,
         // since our `Drop` impl isn't going to run so there's no more code.