File tree Expand file tree Collapse file tree
compiler/rustc_middle/src/mir Expand file tree Collapse file tree Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments