From c9b7e8086e910192016d57feed762f31aee5f42c Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Tue, 10 Dec 2024 14:53:29 +0800 Subject: [PATCH 1/2] add a warning where loop always require arguments --- next/language/fundamentals.md | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/next/language/fundamentals.md b/next/language/fundamentals.md index 48183759..ea5161a0 100644 --- a/next/language/fundamentals.md +++ b/next/language/fundamentals.md @@ -748,6 +748,10 @@ A functional loop consumes arguments and returns a value. It is defined using th :end-before: end for loop 9 ``` +```{warning} +Currently in `loop exprs { ... }`, `exprs` is nonempty list, while `for { ... }` is accepted for inifinite loop. +``` + ## Iterator An iterator is an object that traverse through a sequence while providing access From 4a4500bc0d31f76b8da1ca2c8811dc1ea25617e6 Mon Sep 17 00:00:00 2001 From: Hongbo Zhang Date: Tue, 10 Dec 2024 15:13:55 +0800 Subject: [PATCH 2/2] fix typo --- next/language/fundamentals.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/next/language/fundamentals.md b/next/language/fundamentals.md index ea5161a0..a5873d8d 100644 --- a/next/language/fundamentals.md +++ b/next/language/fundamentals.md @@ -749,7 +749,7 @@ A functional loop consumes arguments and returns a value. It is defined using th ``` ```{warning} -Currently in `loop exprs { ... }`, `exprs` is nonempty list, while `for { ... }` is accepted for inifinite loop. +Currently in `loop exprs { ... }`, `exprs` is nonempty list, while `for { ... }` is accepted for infinite loop. ``` ## Iterator