Skip to content

Commit d5df8a4

Browse files
committed
improve wording
1 parent 2c6981a commit d5df8a4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/libcore/pin.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -205,8 +205,8 @@
205205
//! does not cause unsoundness.)
206206
//! 5. You must not offer any other operations that could lead to data being moved out of
207207
//! 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>`.
208+
//! tricky when interior mutability is involved. For example, imagine if `RefCell`
209+
//! had a method `fn get_pin_mut(self: Pin<&mut Self>) -> Pin<&mut T>`.
210210
//! Then we could do the following:
211211
//! ```compile_fail
212212
//! fn exploit_ref_cell<T>(rc: Pin<&mut RefCell<T>) {

0 commit comments

Comments
 (0)