We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1999a22 commit 96be181Copy full SHA for 96be181
src/libcore/pin.rs
@@ -215,7 +215,7 @@
215
//! had a method `fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>`.
216
//! Then we could do the following:
217
//! ```compile_fail
218
-//! fn exploit_ref_cell<T>(rc: Pin<&mut RefCell<T>) {
+//! fn exploit_ref_cell<T>(rc: Pin<&mut RefCell<T>>) {
219
//! { let p = rc.as_mut().get_pin_mut(); } // Here we get pinned access to the `T`.
220
//! let rc_shr: &RefCell<T> = rc.into_ref().get_ref();
221
//! let b = rc_shr.borrow_mut();
0 commit comments