]> git.lizzy.rs Git - rust.git/blobdiff - library/core/src/pin.rs
Add get_many_mut methods to slice
[rust.git] / library / core / src / pin.rs
index ccef35b45325a4001603c6edc7f6fc6c73d017f2..f0258640e2aec4c508b421cdd87d031e34adfa9a 100644 (file)
@@ -1059,7 +1059,7 @@ impl<P, U> DispatchFromDyn<Pin<U>> for Pin<P> where P: DispatchFromDyn<U> {}
 /// 8  | let x: Pin<&mut Foo> = {
 ///    |     - borrow later stored here
 /// 9  |     let x: Pin<&mut Foo> = pin!(Foo { /* … */ });
-///    |                            ^^^^^^^^^^^^^^^^^^^^^ creates a temporary which is freed while still in use
+///    |                            ^^^^^^^^^^^^^^^^^^^^^ creates a temporary value which is freed while still in use
 /// 10 |     x
 /// 11 | }; // <- Foo is dropped
 ///    | - temporary value is freed at the end of this statement