diff options
| author | Aakarshit Uppal <26065812+aksh1618@users.noreply.github.com> | 2024-11-25 17:37:30 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-11-25 17:37:30 +0000 |
| commit | f5216ee5863f81d56a679166fa64d3b3ce907843 (patch) | |
| tree | 90d2a3f47c8329ae1b40db18ba80cd14f6cec562 /library | |
| parent | 7db7489f9bc274cb60c4956bfa56de0185eb1b9b (diff) | |
| download | rust-f5216ee5863f81d56a679166fa64d3b3ce907843.tar.gz rust-f5216ee5863f81d56a679166fa64d3b3ce907843.zip | |
Fix typos in pin.rs
Diffstat (limited to 'library')
| -rw-r--r-- | library/core/src/pin.rs | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/library/core/src/pin.rs b/library/core/src/pin.rs index c14c49a0d92..43cebf4881e 100644 --- a/library/core/src/pin.rs +++ b/library/core/src/pin.rs @@ -373,9 +373,9 @@ //! exactly what we did with our `AddrTracker` example above. Without doing this, you *must not* //! rely on pinning-related guarantees to apply to your type! //! -//! If need to truly pin a value of a foreign or built-in type that implements [`Unpin`], you'll -//! need to create your own wrapper type around the [`Unpin`] type you want to pin and then -//! opts-out of [`Unpin`] using [`PhantomPinned`]. +//! If you really need to pin a value of a foreign or built-in type that implements [`Unpin`], +//! you'll need to create your own wrapper type around the [`Unpin`] type you want to pin and then +//! opt-out of [`Unpin`] using [`PhantomPinned`]. //! //! Exposing access to the inner field which you want to remain pinned must then be carefully //! considered as well! Remember, exposing a method that gives access to a |
