Slightly confusing grammar in pinning docs. #65868
Labels
A-docs
Area: Documentation for any part of the project, including the compiler, standard library, and tools
C-enhancement
Category: An issue proposing an enhancement or a PR with one.
T-libs-api
Relevant to the library API team, which will review and decide on the PR/issue.
Hi, I've just read the
std::pin
docs as part of learningstd::future::Future
and attempting to write my own combinator. This section is pretty dense for my first read, and only at the very end, when it mentionedFuture
combinators did I realize I had a misunderstanding through the entire reading due to this phrase in the projections section (link to rendered docs):At the end, the sentence that made me realize I had a misunderstanding is here:
My misunderstanding, on reading the first quote, was to believe that if any field is a pinned projection, then all other fields must also be pinned projections, or if any field is not, all other fields must not be. For me, if the first phrase said this instead, I think it would be clearer:
I'm a native English speaker, and I'm still not sure if the difference between my suggestion and the current text implies the technical difference I intend here, and I'm not sure if other readers might encounter a similar confusion. (Technical writing is hard!)
To really drive it home, maybe append the following sentence:
I hope this helps make it easier for first-time readers to understand the projections and structural pinning section a bit better.
Thanks for your effort!
ps: Rust is awesome, and the core/std docs are excellent. ;-)
The text was updated successfully, but these errors were encountered: