From b857f1e403747f98d7c5ad4a13b8d78633552c18 Mon Sep 17 00:00:00 2001 From: lyken Date: Tue, 4 Jun 2024 17:15:41 +0800 Subject: [PATCH] nac3core: fix typo in gen_for's comment --- nac3core/src/codegen/generator.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nac3core/src/codegen/generator.rs b/nac3core/src/codegen/generator.rs index 4f7dd0dc6..3b023e356 100644 --- a/nac3core/src/codegen/generator.rs +++ b/nac3core/src/codegen/generator.rs @@ -143,8 +143,8 @@ pub trait CodeGenerator { gen_while(self, ctx, stmt) } - /// Generate code for a while expression. - /// Return true if the while loop must early return + /// Generate code for a for expression. + /// Return true if the for loop must early return fn gen_for( &mut self, ctx: &mut CodeGenContext<'_, '_>,