aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSam Anthony <sam@samanthony.xyz>2024-06-25 16:06:56 -0400
committerSam Anthony <sam@samanthony.xyz>2024-06-25 16:06:56 -0400
commitbee8ab445a841792a5e8af45a5950c8df6f8ecbf (patch)
tree0935065418a1cd660290e0b157db6a7a072bf788
parent23707b86f898ed89cff4b2d62230f9cf3922f6f5 (diff)
downloadpfc-bee8ab445a841792a5e8af45a5950c8df6f8ecbf.zip
elaborate operands() comment
-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