From 03b99440b6d1921b01580fe1752760c5fbd626df Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 24 May 2026 00:49:46 +0300 Subject: fix(rpn): correct misleading ClearConstants comment The previous comment contained a contradiction ('removes all constants' vs 'clears only user-defined') and incorrectly claimed built-in constants are 'preserved' (ReloadBuiltInConstants actually resets them to defaults, e.g. restoring pi if the user had overwritten it). --- internal/rpn/operations_constants.go | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/internal/rpn/operations_constants.go b/internal/rpn/operations_constants.go index fecf2f9..7fbd4c9 100644 --- a/internal/rpn/operations_constants.go +++ b/internal/rpn/operations_constants.go @@ -26,8 +26,7 @@ func (o *Operations) ListConstants() (string, error) { return sb.String(), nil } -// ClearConstants removes all constants from storage. -// Note: This clears only user-defined constants; built-in constants are preserved. +// ClearConstants removes all user-defined constants and resets built-in constants to their default values. // Usage: `clearconstants` func (o *Operations) ClearConstants() { o.consts.ReloadBuiltInConstants() -- cgit v1.2.3