We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2c6981a commit d5df8a4Copy full SHA for d5df8a4
src/libcore/pin.rs
@@ -205,8 +205,8 @@
205
//! does not cause unsoundness.)
206
//! 5. You must not offer any other operations that could lead to data being moved out of
207
//! the fields when your type is pinned. This is usually not a concern, but can become
208
-//! tricky when interior mutability is involved. For example, imagine `RefCell`
209
-//! would have a method `fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>`.
+//! tricky when interior mutability is involved. For example, imagine if `RefCell`
+//! had a method `fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>`.
210
//! Then we could do the following:
211
//! ```compile_fail
212
//! fn exploit_ref_cell<T>(rc: Pin<&mut RefCell<T>) {
0 commit comments