nac3core: fix typo in gen_for's comment

This commit is contained in:
lyken 2024-06-04 17:15:41 +08:00
parent fa8af37e84
commit b857f1e403

View File

@ -143,8 +143,8 @@ pub trait CodeGenerator {
gen_while(self, ctx, stmt) gen_while(self, ctx, stmt)
} }
/// Generate code for a while expression. /// Generate code for a for expression.
/// Return true if the while loop must early return /// Return true if the for loop must early return
fn gen_for( fn gen_for(
&mut self, &mut self,
ctx: &mut CodeGenContext<'_, '_>, ctx: &mut CodeGenContext<'_, '_>,