diff options
| author | León Orell Valerian Liehr <me@fmease.dev> | 2024-10-23 22:11:06 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-10-23 22:11:06 +0200 |
| commit | fbe33e35aff61910178565013a7efbb4840e7629 (patch) | |
| tree | ad885992ff12c2a145f3ec8cef5a9c3e788a4f60 /library/core/src | |
| parent | b0a8e4e030f10f3834bdf906938025e8718a2706 (diff) | |
| parent | b515bbfb850febc9282a1b2a72ed31076a23c04a (diff) | |
| download | rust-fbe33e35aff61910178565013a7efbb4840e7629.tar.gz rust-fbe33e35aff61910178565013a7efbb4840e7629.zip | |
Rollup merge of #132066 - tifv:ptr-docs-typo, r=Amanieu
Fix a typo in documentation of `pointer::sub_ptr()` Just a typo in docs.
Diffstat (limited to 'library/core/src')
| -rw-r--r-- | library/core/src/ptr/const_ptr.rs | 2 | ||||
| -rw-r--r-- | library/core/src/ptr/mut_ptr.rs | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/ptr/const_ptr.rs b/library/core/src/ptr/const_ptr.rs index 9ee0fb5948e..facf38894d3 100644 --- a/library/core/src/ptr/const_ptr.rs +++ b/library/core/src/ptr/const_ptr.rs @@ -704,7 +704,7 @@ impl<T: ?Sized> *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: diff --git a/library/core/src/ptr/mut_ptr.rs b/library/core/src/ptr/mut_ptr.rs index 782934fc311..031939cf0d5 100644 --- a/library/core/src/ptr/mut_ptr.rs +++ b/library/core/src/ptr/mut_ptr.rs @@ -867,7 +867,7 @@ impl<T: ?Sized> *mut 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: |
