]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/pin.rs
Rollup merge of #107452 - y21:get-mut-unchecked-typo, r=Mark-Simulacrum
[rust.git] / library / core / src / pin.rs
index 2eb29d4f9c57410081309ed539b6c6f2fb34d1ac..ec0c9984841e68089536f9836cfe70e5bb7dcd81 100644 (file)
@@ -753,7 +753,7 @@ pub fn set(&mut self, value: P::Target)
 impl<'a, T: ?Sized> Pin<&'a T> {
     /// Constructs a new pin by mapping the interior value.
     ///
-    /// For example, if you  wanted to get a `Pin` of a field of something,
+    /// For example, if you wanted to get a `Pin` of a field of something,
     /// you could use this to get access to that field in one line of code.
     /// However, there are several gotchas with these "pinning projections";
     /// see the [`pin` module] documentation for further details on that topic.
@@ -856,7 +856,7 @@ pub const fn get_mut(self) -> &'a mut T
 
     /// Construct a new pin by mapping the interior value.
     ///
-    /// For example, if you  wanted to get a `Pin` of a field of something,
+    /// For example, if you wanted to get a `Pin` of a field of something,
     /// you could use this to get access to that field in one line of code.
     /// However, there are several gotchas with these "pinning projections";
     /// see the [`pin` module] documentation for further details on that topic.