From e6b1d6882b1c766ad30aee5a43ab9f1dca4185f7 Mon Sep 17 00:00:00 2001 From: Paul Buetow Date: Sun, 24 May 2026 00:26:01 +0300 Subject: docs(internal/repl): fix inaccurate comments in handlers.go - Fix Next() doc to show correct 3-value return signature ("", false, nil) instead of (false, nil) - Add missing symbol syntax (:x) to RPNHandler.Handle doc comment --- internal/repl/handlers.go | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/internal/repl/handlers.go b/internal/repl/handlers.go index f5fb909..c5b28fc 100644 --- a/internal/repl/handlers.go +++ b/internal/repl/handlers.go @@ -38,7 +38,7 @@ func (h *BaseHandler) SetNext(next CommandHandler) { } // Next forwards the request to the next handler in the chain. -// If there is no next handler, it returns (false, nil) indicating the request +// If there is no next handler, it returns ("", false, nil) indicating the request // was not handled. // // repl: the REPL instance @@ -139,6 +139,7 @@ type RPNHandler struct { // - Bare RPN expressions (e.g., "3 4 +") // - Single RPN operators on the current stack // - Single numbers (push onto stack) +// - Symbol syntax (e.g., ":x") that pushes a symbol onto the stack // // If the input doesn't match any RPN pattern, it forwards to the next handler. // -- cgit v1.2.3