-
Notifications
You must be signed in to change notification settings - Fork 550
Simplify long sentence #2443
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Simplify long sentence #2443
Conversation
src/coroutine-closures.md
Outdated
@@ -10,7 +10,9 @@ As a consequence of the code being somewhat general, this document may flip betw | |||
|
|||
## HIR | |||
|
|||
Async closures (and in the future, other coroutine flavors such as `gen`) are represented in HIR as a `hir::Closure` whose closure-kind is `ClosureKind::CoroutineClosure(_)`[^k1], which wraps an async block, which is also represented in HIR as a `hir::Closure`) and whose closure-kind is `ClosureKind::Closure(CoroutineKind::Desugared(_, CoroutineSource::Closure))`[^k2]. | |||
Async closures (and in the future, other coroutine flavors such as `gen`) are represented in HIR as a `hir::Closure`. | |||
Its closure-kind is `ClosureKind::CoroutineClosure(_)`[^k1], which wraps an async block, which is also represented in HIR as a `hir::Closure`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
"its" can be thought to refer to "Async closures"
Its closure-kind is `ClosureKind::CoroutineClosure(_)`[^k1], which wraps an async block, which is also represented in HIR as a `hir::Closure`. | |
The closure-kind of the `hir::Closure` is `ClosureKind::CoroutineClosure(_)`[^k1], which wraps an async block, which is also represented in HIR as a `hir::Closure`. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sorry, but I am going to gently push back on this one: I don't think "its" can be thought to refer to "Async closures", because of the plurality of "Async closures". Only "their" can be used where I've written "its", which makes the "its" unambiguous.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see... that it tripped me indicates that the text here is not so simple. My suggestion removes an ambiguity, even if repetitive.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Yeah, even as I was writing my objection that came to mind 😅
I applied your suggestion. Thanks for the review!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
thanks for loving them docs
No description provided.