From dd2dd420736c38dfcb02d3615d5884463cce2adc Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 24 May 2026 00:06:24 +0300 Subject: docs(rpn): fix misleading comment in handleStandardAssign - Rename comment subject from 'standardAssignHandler' to match actual function name 'handleStandardAssign' - Correct stack position description: in 'name value =' format, name is pushed first (bottom of stack) and value second (top), not the reverse as the comment previously stated --- internal/rpn/rpn_parse.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'internal') diff --git a/internal/rpn/rpn_parse.go b/internal/rpn/rpn_parse.go index f3ecb51..2eaab04 100644 --- a/internal/rpn/rpn_parse.go +++ b/internal/rpn/rpn_parse.go @@ -119,8 +119,8 @@ func handleAssignLeft(input string, r *RPN) (string, bool, error) { return handleAssignmentOp(input, r, "=:") } -// standardAssignHandler handles the standard = operator. -// Format: name value = expression (value on bottom, expression after =) +// handleStandardAssign handles the standard = operator. +// Format: name value = expression (name on bottom, value on top, expression after =) // Or: name = value (single assignment) func handleStandardAssign(input string, r *RPN) (string, bool, error) { // Check for standard assignment format (name = value or name value = expression) -- cgit v1.2.3