fix a typo in documentation of pointer::sub_ptr() · qinheping/verify-rust-std@843347f (original) (raw)
2 files changed
lines changed
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -704,7 +704,7 @@ impl<T: ?Sized> *const T { | ||
| 704 | 704 | /// but it provides slightly more information to the optimizer, which can |
| 705 | 705 | /// sometimes allow it to optimize slightly better with some backends. |
| 706 | 706 | /// |
| 707 | - /// This method can be though of as recovering the `count` that was passed | |
| 707 | + /// This method can be thought of as recovering the `count` that was passed | |
| 708 | 708 | /// to [`add`](#method.add) (or, with the parameters in the other order, |
| 709 | 709 | /// to [`sub`](#method.sub)). The following are all equivalent, assuming |
| 710 | 710 | /// that their safety preconditions are met: |
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -867,7 +867,7 @@ impl<T: ?Sized> *mut T { | ||
| 867 | 867 | /// but it provides slightly more information to the optimizer, which can |
| 868 | 868 | /// sometimes allow it to optimize slightly better with some backends. |
| 869 | 869 | /// |
| 870 | - /// This method can be though of as recovering the `count` that was passed | |
| 870 | + /// This method can be thought of as recovering the `count` that was passed | |
| 871 | 871 | /// to [`add`](#method.add) (or, with the parameters in the other order, |
| 872 | 872 | /// to [`sub`](#method.sub)). The following are all equivalent, assuming |
| 873 | 873 | /// that their safety preconditions are met: |