diff --git a/crates/ui-contract/src/runtime/replay.rs b/crates/ui-contract/src/runtime/replay.rs index 910ff06a3..efa4b4df3 100644 --- a/crates/ui-contract/src/runtime/replay.rs +++ b/crates/ui-contract/src/runtime/replay.rs @@ -266,7 +266,8 @@ pub(crate) fn in_audit_run(ctx: &Context) -> bool { OPEN.load(Ordering::Acquire) > 0 && pass_state::with::(ctx, |recorder| recorder.open.iter().any(|open| open.audit)) } -/// Ends the innermost record, the one around a run on `layer`: paint or widgets on another layer block it. +/// Ends the innermost record, the one around a run on `layer`: paint or widgets on a layer that is neither `layer` nor +/// an overlay the run showed block it. pub(crate) fn close(ctx: &Context, layer: Layer) -> Record { OPEN.fetch_sub(1, Ordering::AcqRel); let (open, journal) = pass_state::with::(ctx, |recorder| {