about summary refs log tree commit diff
diff options
context:
space:
mode:
authorMatthias Krüger <matthias.krueger@famsik.de>2023-10-25 17:40:32 +0200
committerGitHub <noreply@github.com>2023-10-25 17:40:32 +0200
commita7d05a6dfad6c1b2d77b25bdb70235e7e54c12ec (patch)
tree5a57dafb139fecdf7b64c91d350376b210a7fe1c
parentdffed66456d6acf650d0af17aa34f24546108d04 (diff)
parent1be00334578c09dc5b41de0f19e841add69eb22e (diff)
downloadrust-a7d05a6dfad6c1b2d77b25bdb70235e7e54c12ec.tar.gz
rust-a7d05a6dfad6c1b2d77b25bdb70235e7e54c12ec.zip
Rollup merge of #117168 - oli-obk:coroutine_cleanups, r=JohnTitor
Fix some coroutine sentences that don't make sense anymore.

These happened during the `generator` -> `coroutine` rename.

Found thanks to `@pthariensflame` for their thorough review of the `generator` -> `coroutine` rename https://github.com/rust-lang/rust/pull/116958#issuecomment-1777756937
-rw-r--r--library/core/src/ops/coroutine.rs2
-rw-r--r--src/doc/unstable-book/src/language-features/coroutines.md2
2 files changed, 2 insertions, 2 deletions
diff --git a/library/core/src/ops/coroutine.rs b/library/core/src/ops/coroutine.rs
index e01a893a068..cd5ca988f7e 100644
--- a/library/core/src/ops/coroutine.rs
+++ b/library/core/src/ops/coroutine.rs
@@ -29,7 +29,7 @@ pub enum CoroutineState<Y, R> {
 
 /// The trait implemented by builtin coroutine types.
 ///
-/// Coroutines, also commonly referred to as coroutines, are currently an
+/// Coroutines are currently an
 /// experimental language feature in Rust. Added in [RFC 2033] coroutines are
 /// currently intended to primarily provide a building block for async/await
 /// syntax but will likely extend to also providing an ergonomic definition for
diff --git a/src/doc/unstable-book/src/language-features/coroutines.md b/src/doc/unstable-book/src/language-features/coroutines.md
index fb1ba791aef..f8e5a22fbd5 100644
--- a/src/doc/unstable-book/src/language-features/coroutines.md
+++ b/src/doc/unstable-book/src/language-features/coroutines.md
@@ -18,7 +18,7 @@ Coroutines are an extra-unstable feature in the compiler right now. Added in
 [RFC 2033] they're mostly intended right now as a information/constraint
 gathering phase. The intent is that experimentation can happen on the nightly
 compiler before actual stabilization. A further RFC will be required to
-stabilize coroutines/coroutines and will likely contain at least a few small
+stabilize coroutines and will likely contain at least a few small
 tweaks to the overall design.
 
 [RFC 2033]: https://github.com/rust-lang/rfcs/pull/2033