From 511011335a1371b6060c530942abbee549ab93ed Mon Sep 17 00:00:00 2001 From: TAY TS Date: Sun, 23 May 2021 09:43:38 +0800 Subject: [PATCH] Update range.html.md Fix the condition in the negative direction range pseudo code --- website/docs/language/functions/range.html.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/docs/language/functions/range.html.md b/website/docs/language/functions/range.html.md index bdb538ec8..e154e8a9e 100644 --- a/website/docs/language/functions/range.html.md +++ b/website/docs/language/functions/range.html.md @@ -32,7 +32,7 @@ The sequence-building algorithm follows the following pseudocode: ``` let num = start -while num < limit: (or, for negative step, num >= limit) +while num < limit: (or, for negative step, num > limit) append num to the sequence num = num + step return the sequence