From 1b278fc657e1ecf258c2ed8778e8529a3861fa7e Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Sat, 1 Feb 2025 17:31:55 -0600 Subject: [PATCH] Update reduce2 documentation to fix issue #1545 --- CHANGELOG.md | 1 + src/boot/boot.janet | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index a83876c8..395b3188 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -2,6 +2,7 @@ All notable changes to this project will be documented in this file. ## ??? - Unreleased +- Add IEEE hex floats to grammar. - Add `struct/rawget` - Fix `deep=` and `deep-not=` to better handle degenerate cases with mutable table keys - Long strings will now dedent on `\r\n` instead of just `\n`. diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 16e7f48a..2198e74b 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -996,7 +996,7 @@ (defn reduce2 ``The 2-argument version of `reduce` that does not take an initialization value. - Instead, the first element of the array is used for initialization.`` + Instead, the first element of the array is used for initialization. If `ind` is empty, will evaluate to nil.`` [f ind] (var k (next ind)) (if (= nil k) (break nil))