diff options
| author | Sam Anthony <sam@samanthony.xyz> | 2024-06-25 16:06:56 -0400 |
|---|---|---|
| committer | Sam Anthony <sam@samanthony.xyz> | 2024-06-25 16:06:56 -0400 |
| commit | bee8ab445a841792a5e8af45a5950c8df6f8ecbf (patch) | |
| tree | 0935065418a1cd660290e0b157db6a7a072bf788 /calc.go | |
| parent | 23707b86f898ed89cff4b2d62230f9cf3922f6f5 (diff) | |
| download | pfc-bee8ab445a841792a5e8af45a5950c8df6f8ecbf.zip | |
elaborate operands() comment
Diffstat (limited to 'calc.go')
| -rw-r--r-- | calc.go | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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 |