Skip to content

Commit b5bea25

Browse files
authored
Rollup merge of rust-lang#61965 - phil-opp:patch-4, r=scottmcm
Remove mentions of removed `offset_to` method from `align_offset` docs The `offset_to` method was deleted in rust-lang#52814. The replacement for the removed method is `wrapping_offset_from`. However, neither method takes an `usize` as argument, so I don't think that it makes sense to mention them.
2 parents 04b88a9 + c9c73f5 commit b5bea25

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/ptr/mod.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -1609,7 +1609,7 @@ impl<T: ?Sized> *const T {
16091609
/// `usize::max_value()`.
16101610
///
16111611
/// The offset is expressed in number of `T` elements, and not bytes. The value returned can be
1612-
/// used with the `offset` or `offset_to` methods.
1612+
/// used with the `add` method.
16131613
///
16141614
/// There are no guarantees whatsover that offsetting the pointer will not overflow or go
16151615
/// beyond the allocation that the pointer points into. It is up to the caller to ensure that
@@ -2410,7 +2410,7 @@ impl<T: ?Sized> *mut T {
24102410
/// `usize::max_value()`.
24112411
///
24122412
/// The offset is expressed in number of `T` elements, and not bytes. The value returned can be
2413-
/// used with the `offset` or `offset_to` methods.
2413+
/// used with the `add` method.
24142414
///
24152415
/// There are no guarantees whatsover that offsetting the pointer will not overflow or go
24162416
/// beyond the allocation that the pointer points into. It is up to the caller to ensure that

0 commit comments

Comments
 (0)