]> git.lizzy.rs Git - rust.git/commitdiff
Fix typo in pin documentation
authorSean Griffin <sean@seantheprogrammer.com>
Thu, 27 Dec 2018 15:53:43 +0000 (08:53 -0700)
committerGitHub <noreply@github.com>
Thu, 27 Dec 2018 15:53:43 +0000 (08:53 -0700)
Affect is a verb, effect is a noun

src/libcore/pin.rs

index d8508631bf9c36a487f004014f4387aa033e138b..e31ac691e3a3c0ba8c91e5d6bd9f8067a3c2c36a 100644 (file)
@@ -25,7 +25,7 @@
 //! values.
 //!
 //! However, these restrictions are usually not necessary. Many types are always freely
-//! movable. These types implement the [`Unpin`] auto-trait, which nullifies the affect
+//! movable. These types implement the [`Unpin`] auto-trait, which nullifies the effect
 //! of [`Pin`]. For `T: Unpin`, `Pin<Box<T>>` and `Box<T>` function identically, as do
 //! `Pin<&mut T>` and `&mut T`.
 //!