From 36ed9244fb906a365b4cb66633279f188790bb2d Mon Sep 17 00:00:00 2001 From: Jim Blandy Date: Sat, 14 Jan 2023 10:12:10 -0800 Subject: [PATCH] Fix docs for `Emit` statements. --- src/lib.rs | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/lib.rs b/src/lib.rs index 65f018948f..4497c14acb 100644 --- a/src/lib.rs +++ b/src/lib.rs @@ -108,9 +108,7 @@ Naga's rules for when `Expression`s are evaluated are as follows: evaluated when the `Atomic` statement is executed. - All other expressions are evaluated when the (unique) [`Statement::Emit`] - statement that covers them is executed. The [`Expression::needs_pre_emit`] - method returns `true` if the given expression is one of those variants that - does *not* need to be covered by an `Emit` statement. + statement that covers them is executed. Now, strictly speaking, not all `Expression` variants actually care when they're evaluated. For example, you can evaluate a [`BinaryOperator::Add`] expression