summaryrefslogtreecommitdiff
path: root/internal
diff options
context:
space:
mode:
authorPaul Buetow <paul@buetow.org>2026-05-24 00:26:01 +0300
committerPaul Buetow <paul@buetow.org>2026-05-24 00:26:01 +0300
commite6b1d6882b1c766ad30aee5a43ab9f1dca4185f7 (patch)
treed0be5c8cd2869738e78fa39f291d97f802df7067 /internal
parent67ed9df5ed90475a99059cd5136373d85fff6ce4 (diff)
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
Diffstat (limited to 'internal')
-rw-r--r--internal/repl/handlers.go3
1 files changed, 2 insertions, 1 deletions
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.
//