diff options
| author | Mazdak Farrokhzad <twingoow@gmail.com> | 2019-07-30 05:37:30 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-07-30 05:37:30 +0200 |
| commit | b5bea2565e565dd014f768921f63d111ebfe27d3 (patch) | |
| tree | cfd4a17ff572c2d1193c4eb72ac245e608335073 /src/libcore/ptr | |
| parent | 04b88a9eba8abbac87eddcb2998beea09589c2c9 (diff) | |
| parent | c9c73f5d2550f00e9b952e65d05421721b73ee6d (diff) | |
| download | rust-b5bea2565e565dd014f768921f63d111ebfe27d3.tar.gz rust-b5bea2565e565dd014f768921f63d111ebfe27d3.zip | |
Rollup merge of #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 https://github.com/rust-lang/rust/pull/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.
Diffstat (limited to 'src/libcore/ptr')
| -rw-r--r-- | src/libcore/ptr/mod.rs | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/libcore/ptr/mod.rs b/src/libcore/ptr/mod.rs index a7f6926de42..a1f96905dc9 100644 --- a/src/libcore/ptr/mod.rs +++ b/src/libcore/ptr/mod.rs @@ -1609,7 +1609,7 @@ impl<T: ?Sized> *const T { /// `usize::max_value()`. /// /// The offset is expressed in number of `T` elements, and not bytes. The value returned can be - /// used with the `offset` or `offset_to` methods. + /// used with the `add` method. /// /// There are no guarantees whatsover that offsetting the pointer will not overflow or go /// 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 { /// `usize::max_value()`. /// /// The offset is expressed in number of `T` elements, and not bytes. The value returned can be - /// used with the `offset` or `offset_to` methods. + /// used with the `add` method. /// /// There are no guarantees whatsover that offsetting the pointer will not overflow or go /// beyond the allocation that the pointer points into. It is up to the caller to ensure that |
