Rollup merge of #132066 - tifv:ptr-docs-typo, r=Amanieu
Fix a typo in documentation of `pointer::sub_ptr()` Just a typo in docs.
This commit is contained in:
commit
fbe33e35af
@ -704,7 +704,7 @@ pub fn mask(self, mask: usize) -> *const T {
|
||||
/// but it provides slightly more information to the optimizer, which can
|
||||
/// sometimes allow it to optimize slightly better with some backends.
|
||||
///
|
||||
/// This method can be though of as recovering the `count` that was passed
|
||||
/// This method can be thought of as recovering the `count` that was passed
|
||||
/// to [`add`](#method.add) (or, with the parameters in the other order,
|
||||
/// to [`sub`](#method.sub)). The following are all equivalent, assuming
|
||||
/// that their safety preconditions are met:
|
||||
|
@ -867,7 +867,7 @@ pub const fn guaranteed_ne(self, other: *mut T) -> Option<bool>
|
||||
/// but it provides slightly more information to the optimizer, which can
|
||||
/// sometimes allow it to optimize slightly better with some backends.
|
||||
///
|
||||
/// This method can be though of as recovering the `count` that was passed
|
||||
/// This method can be thought of as recovering the `count` that was passed
|
||||
/// to [`add`](#method.add) (or, with the parameters in the other order,
|
||||
/// to [`sub`](#method.sub)). The following are all equivalent, assuming
|
||||
/// that their safety preconditions are met:
|
||||
|
Loading…
Reference in New Issue
Block a user