From d2732857f1b47d3745c04fd5fb0769fff9a7e6c7 Mon Sep 17 00:00:00 2001 From: Luke Date: Mon, 14 Jul 2025 23:50:01 +0800 Subject: [PATCH] =?UTF-8?q?refactor:=20=E9=87=8D=E6=9E=84=20SnowExample=20?= =?UTF-8?q?=E4=B8=AD=E7=9A=84=E5=BE=AA=E7=8E=AF=E7=BB=93=E6=9E=84?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit - 将 loop 节点下的子节点名称从 initializer 改为 init - 将 loop 节点下的子节点名称从 condition改为 cond - 将 loop 节点下的子节点名称从 update 改为 step --- src/main/java/org/jcnc/snow/pkg/utils/SnowExample.java | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/main/java/org/jcnc/snow/pkg/utils/SnowExample.java b/src/main/java/org/jcnc/snow/pkg/utils/SnowExample.java index ffd18d1..7358487 100644 --- a/src/main/java/org/jcnc/snow/pkg/utils/SnowExample.java +++ b/src/main/java/org/jcnc/snow/pkg/utils/SnowExample.java @@ -39,11 +39,11 @@ public final class SnowExample { body: declare num1: int = 1 loop: - initializer: + init: declare counter:int = 1 - condition: + cond: counter <= n - update: + step: counter = counter + 1 body: num1 = num1 * counter