1
Fork 0

Remove mentions of removed offset_to method

This commit is contained in:
Philipp Oppermann 2019-06-19 18:46:12 +02:00 committed by GitHub
parent e79b2a18a2
commit fed12fad70
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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