about summary refs log tree commit diff
path: root/src/doc/rustc-dev-guide
diff options
context:
space:
mode:
authorTshepang Mbambo <hopsi@tuta.io>2025-06-02 17:30:02 +0200
committerGitHub <noreply@github.com>2025-06-02 17:30:02 +0200
commit10f2bcc95738423fbdf01ce3bb00e4092102c438 (patch)
treedd6f0dc67c71f544cbd57bf0aaa667e15a2aa34f /src/doc/rustc-dev-guide
parent9649a9c0c5771dc2102a41910e14d7a371d38ba6 (diff)
parente74c2b522594522aadb4ac0380d071dad1f10ff7 (diff)
downloadrust-10f2bcc95738423fbdf01ce3bb00e4092102c438.tar.gz
rust-10f2bcc95738423fbdf01ce3bb00e4092102c438.zip
Merge pull request #2443 from smanilov/patch-21
Simplify long sentence
Diffstat (limited to 'src/doc/rustc-dev-guide')
-rw-r--r--src/doc/rustc-dev-guide/src/coroutine-closures.md4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/doc/rustc-dev-guide/src/coroutine-closures.md b/src/doc/rustc-dev-guide/src/coroutine-closures.md
index 5239c26bd85..48cdba44a9f 100644
--- a/src/doc/rustc-dev-guide/src/coroutine-closures.md
+++ b/src/doc/rustc-dev-guide/src/coroutine-closures.md
@@ -14,7 +14,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`.
+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`.
+The closure-kind of the async block is `ClosureKind::Closure(CoroutineKind::Desugared(_, CoroutineSource::Closure))`[^k2].
 
 [^k1]: <https://github.com/rust-lang/rust/blob/5ca0e9fa9b2f92b463a0a2b0b34315e09c0b7236/compiler/rustc_ast_lowering/src/expr.rs#L1147>