Skip to content

Commit 80a55ed

Browse files
Doc nits
1 parent 52258fe commit 80a55ed

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

library/core/src/pin.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -2100,10 +2100,10 @@ pub macro pin($value:expr $(,)?) {
21002100
/// hinges on the following observation:
21012101
///
21022102
/// > `&mut Wrapper { field: $value }` happens to preserve the lifespan-of-temps-extending
2103-
/// > rules of 2021 edition `&mut $value`, and also funnels `$value` through a value expression.
2103+
/// > rules of 2021 edition `&mut { $value }`, and also funnels `$value` through a value expression.
21042104
///
2105-
/// But we get a `&mut Wrapper<typeof<$value>>` rather than a `&mut typeof<$value>`.
2106-
/// So now the challenge is to get `DerefMut` to take place here, and we are good!
2105+
/// But of course, we now have a `&mut Wrapper<typeof<$value>>` rather than a `&mut typeof<$value>`.
2106+
/// So now the challenge is to get `DerefMut` to take place here, and we will be good to go!
21072107
///
21082108
/// Only…, so far, lifespan-extension rules get broken by _explicit_ `Deref{,Mut}` such as `*`,
21092109
/// `&*`, or, in our case, `&mut *`!! 😩

0 commit comments

Comments
 (0)