From bee8ab445a841792a5e8af45a5950c8df6f8ecbf Mon Sep 17 00:00:00 2001 From: Sam Anthony Date: Tue, 25 Jun 2024 16:06:56 -0400 Subject: elaborate operands() comment --- calc.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/calc.go b/calc.go index 689243c..e9b46d1 100644 --- a/calc.go +++ b/calc.go @@ -67,7 +67,7 @@ func (c *Calculator) performOperation(operator byte) error { return nil } -// operands returns the operands of an arithmetic operation. +// operands returns the left and right operands, or error if there are not enough. func (c *Calculator) operands() (lhs, rhs float64, err error) { if buf, err := c.parseBuffer(); err == nil { rhs = buf -- cgit v1.2.3