diff options
| author | Philipp Oppermann <dev@phil-opp.com> | 2019-06-19 18:46:12 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-06-19 18:46:12 +0200 |
| commit | fed12fad7019051fc875a06d3699d660ea1e226a (patch) | |
| tree | 0345597888f88ac05fb8aa7fe620de94cb5f985c /src/libcore/ptr | |
| parent | e79b2a18a21e6b178d73473bb8fdbf3d18c66051 (diff) | |
| download | rust-fed12fad7019051fc875a06d3699d660ea1e226a.tar.gz rust-fed12fad7019051fc875a06d3699d660ea1e226a.zip | |
Remove mentions of removed `offset_to` method
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 8f026a5b7d8..337f3440b43 100644 --- a/src/libcore/ptr/mod.rs +++ b/src/libcore/ptr/mod.rs @@ -1534,7 +1534,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 `offset` 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 @@ -2335,7 +2335,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 `offset` 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 |
