aboutsummaryrefslogtreecommitdiffstats
path: root/calc.go
diff options
context:
space:
mode:
Diffstat (limited to 'calc.go')
-rw-r--r--calc.go2
1 files changed, 1 insertions, 1 deletions
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