Skip to content

Commit b542677

Browse files
committed
Review nits.
1 parent 3f96a45 commit b542677

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

compiler/rustc_middle/src/mir/syntax.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -876,14 +876,14 @@ pub enum TerminatorKind<'tcx> {
876876
/// to the return place provided by the caller function, and execution continues in this caller
877877
/// function.
878878
///
879-
/// When the coroutine is polled, execution of this function continues at the `resume`
880-
/// basic block, the `resume_arg` place is evaluated and the second argument to `poll` is
881-
/// written to it.
879+
/// When the coroutine is resumed/polled, execution of this function continues at the `resume`
880+
/// basic block, the `resume_arg` place is evaluated and the second argument to `resume/poll`
881+
/// is written to it.
882882
///
883883
/// If the coroutine is dropped before then, execution of this function continues at the `drop`
884-
/// basic block and the `resume_arg` place is evaluated. For async drop, the second argument to
885-
/// the destructor `poll` method is written to `resume_arg`. For synchronous drops,
886-
/// uninitialized bytes are written to `resume_arg`.
884+
/// basic block and the `resume_arg` place expression is evaluated. For async drop, the second
885+
/// argument to the destructor `resume/poll` method is written to `resume_arg`. For synchronous
886+
/// drops, uninitialized bytes are written to `resume_arg`.
887887
///
888888
/// Note that coroutines can be (unstably) cloned under certain conditions, which means that
889889
/// this terminator can **return multiple times**! MIR optimizations that reorder code into

0 commit comments

Comments
 (0)