about summary refs log tree commit diff
path: root/library
diff options
context:
space:
mode:
authorAakarshit Uppal <26065812+aksh1618@users.noreply.github.com>2024-11-25 17:37:30 +0000
committerGitHub <noreply@github.com>2024-11-25 17:37:30 +0000
commitf5216ee5863f81d56a679166fa64d3b3ce907843 (patch)
tree90d2a3f47c8329ae1b40db18ba80cd14f6cec562 /library
parent7db7489f9bc274cb60c4956bfa56de0185eb1b9b (diff)
downloadrust-f5216ee5863f81d56a679166fa64d3b3ce907843.tar.gz
rust-f5216ee5863f81d56a679166fa64d3b3ce907843.zip
Fix typos in pin.rs
Diffstat (limited to 'library')
-rw-r--r--library/core/src/pin.rs6
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