added help comment

This commit is contained in:
2023-12-04 13:44:19 +01:00
parent a33a76bb06
commit 91fac6d160

View File

@@ -206,6 +206,9 @@ func (c *Calc) SetCommands() {
}
defer os.Remove(tmp.Name())
tmp.WriteString("# add or remove numbers as you wish.\n")
tmp.WriteString("# each number must be on its own line.\n")
tmp.WriteString("# numbers must be floating point formatted.\n")
for _, item := range c.stack.All() {
fmt.Fprintf(tmp, "%f\n", item)
}